// Numbas version: finer_feedback_settings {"name": "Infer types for variables in mathematical expression parts", "extensions": ["eukleides", "random_person", "quantities"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "tags": [], "name": "Infer types for variables in mathematical expression parts", "rulesets": {}, "advice": "", "variable_groups": [], "variables": {}, "resources": [], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "showresultspage": "never"}, "variablesTest": {"maxRuns": 100, "condition": ""}, "statement": "
In this question, the correct answers can't be evaluated by substituting numbers for each of the variables.
\nNumbas can now infer the types of variables in the answers to mathematical expression parts, so questions like this can be marked.
", "ungrouped_variables": [], "custom_part_types": [], "parts": [{"showPreview": true, "failureRate": 1, "showFeedbackIcon": true, "checkingType": "absdiff", "marks": 1, "answer": "k det(A)", "type": "jme", "variableReplacementStrategy": "originalfirst", "customName": "", "prompt": "In this part, $A$ must be a matrix.
\nThe correct answer is $k \\det(A)$
", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "useCustomName": false, "valuegenerators": [{"name": "a", "value": ""}, {"name": "k", "value": ""}], "unitTests": [], "vsetRangePoints": 5, "scripts": {}, "showCorrectAnswer": true, "checkingAccuracy": 0.001, "vsetRange": [0, 1], "customMarkingAlgorithm": "", "checkVariableNames": false}, {"showPreview": true, "failureRate": 1, "showFeedbackIcon": true, "checkingType": "absdiff", "marks": 1, "answer": "a and b", "type": "jme", "variableReplacementStrategy": "originalfirst", "customName": "", "prompt": "$a$ and $b$ are booleans.
\nThe correct answer is $a \\wedge b$, entered as a and b
.
$a$ must be a vector
\nThe correct answer is $\\begin{pmatrix}1\\\\2\\\\3\\end{pmatrix} \\cdot a$, entered as dot(vector(1,2,3),a)
.
In this question, the correct answers can't be evaluated by substituting numbers for each of the variables.
Numbas\n can now infer the types of variables in the answers to mathematical \nexpression parts, so questions like this can be marked.
"}, "type": "exam"}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}