// Numbas version: finer_feedback_settings {"name": "Matrices: scalar multiplication (2x2)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Matrices: scalar multiplication (2x2)", "tags": [], "metadata": {"description": "

Single part question with 2x2 matrix multiplied by a small integer.

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

Calculate the scalar multiple of the matrix below.

", "advice": "

$$

\n

$\\var{scalar}\\begin{pmatrix}\\var{A11}&\\var{A12}\\\\\\var{A21}&\\var{A22} \\end{pmatrix}=\\begin{pmatrix}\\var{scalar}\\times\\var{A11}&\\var{scalar}\\times\\var{A12}\\\\ \\var{scalar}\\times \\var{A21}&\\var{scalar}\\times\\var{A22} \\end{pmatrix}= \\var{ans}$

\n


$$

\n

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"A11": {"name": "A11", "group": "Matrix A", "definition": "random(-2..5)", "description": "", "templateType": "anything", "can_override": false}, "A12": {"name": "A12", "group": "Matrix A", "definition": "random(-2..5)", "description": "", "templateType": "anything", "can_override": false}, "A21": {"name": "A21", "group": "Matrix A", "definition": "random(-2..5)", "description": "", "templateType": "anything", "can_override": false}, "A22": {"name": "A22", "group": "Matrix A", "definition": "random(-2..5)", "description": "", "templateType": "anything", "can_override": false}, "scalar": {"name": "scalar", "group": "Matrix A", "definition": "random(2..10)", "description": "", "templateType": "anything", "can_override": false}, "Ans": {"name": "Ans", "group": "Ungrouped variables", "definition": "matrix([scalar*a11,scalar*a12],[scalar*a21,scalar*a22])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["Ans"], "variable_groups": [{"name": "Matrix A", "variables": ["A11", "A12", "A21", "A22", "scalar"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\var{scalar}\\begin{pmatrix}\\var{A11}&\\var{A12}\\\\\\var{A21}&\\var{A22} \\end{pmatrix}=$[[0]]

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "correctAnswer": "{ans}", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}], "resources": []}]}], "contributors": [{"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}]}