// Numbas version: finer_feedback_settings {"name": "Adding 2x2 matrices", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Adding 2x2 matrices", "tags": [], "metadata": {"description": "
Adding 2x2 matrices. Very simple question. Marks per correct entry.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "To add matrices, we add each entry separately: entry 1,1 of the first matrix plus entry 1,1 of the second matrix goes into entry 1,1 of the sum, and so on.
\n\\[\\begin{pmatrix}\\simplify[]{{a11}+{b11}} & \\var{a12}+\\var{b12} \\\\ \\var{a21} + \\var{b21} & \\var{a22}+\\var{b22}\\end{pmatrix}= \\begin{pmatrix} \\var{c11} & \\var{c12} \\\\ \\var{c21} & \\var{c22}\\end{pmatrix}\\]
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"c12": {"name": "c12", "group": "Ungrouped variables", "definition": "a12+b12", "description": "", "templateType": "anything", "can_override": false}, "a21": {"name": "a21", "group": "Ungrouped variables", "definition": "random(-4 .. 4#1)", "description": "", "templateType": "randrange", "can_override": false}, "c11": {"name": "c11", "group": "Ungrouped variables", "definition": "a11+b11", "description": "", "templateType": "anything", "can_override": false}, "a22": {"name": "a22", "group": "Ungrouped variables", "definition": "random(-5 .. 5#1)", "description": "", "templateType": "randrange", "can_override": false}, "b12": {"name": "b12", "group": "Ungrouped variables", "definition": "random(-2 .. 2#1)", "description": "", "templateType": "randrange", "can_override": false}, "b21": {"name": "b21", "group": "Ungrouped variables", "definition": "random(-5 .. 5#1)", "description": "", "templateType": "randrange", "can_override": false}, "a11": {"name": "a11", "group": "Ungrouped variables", "definition": "random(-3 .. 3#1)", "description": "", "templateType": "randrange", "can_override": false}, "c22": {"name": "c22", "group": "Ungrouped variables", "definition": "a22+b22", "description": "", "templateType": "anything", "can_override": false}, "c21": {"name": "c21", "group": "Ungrouped variables", "definition": "a21+b21", "description": "", "templateType": "anything", "can_override": false}, "b11": {"name": "b11", "group": "Ungrouped variables", "definition": "random(-5 .. 5#1)", "description": "", "templateType": "randrange", "can_override": false}, "b22": {"name": "b22", "group": "Ungrouped variables", "definition": "random(-2 .. 2#1)", "description": "", "templateType": "randrange", "can_override": false}, "a12": {"name": "a12", "group": "Ungrouped variables", "definition": "random(-3 .. 3#1)", "description": "", "templateType": "randrange", "can_override": false}, "matrixC": {"name": "matrixC", "group": "Ungrouped variables", "definition": "matrix([c11,c12],[c21,c22])", "description": "Matrix C, the sum of matrices A and B.
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "(a11*a12*a21*a22<>0) and(b11*b12*b21*b22<>0)", "maxRuns": 100}, "ungrouped_variables": ["a11", "a12", "a21", "a22", "b11", "b12", "b21", "b22", "c11", "c12", "c21", "c22", "matrixC"], "variable_groups": [], "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": "Calculate \\(\\left( \\begin{array}{ccc}
\\var{a11} & \\var{a12} \\\\
\\var{a21} & \\var{a22} \\end{array} \\right)+\\left( \\begin{array}{ccc}
\\var{b11} & \\var{b12} \\\\
\\var{b21} & \\var{b22} \\end{array} \\right)=\\) [[0]].