// Numbas version: finer_feedback_settings {"name": "Ioannis's copy of Lois's copy of Matrix Operations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "name": "Ioannis's copy of Lois's copy of Matrix Operations", "variables": {"ab": {"group": "Ungrouped variables", "name": "ab", "description": "", "definition": "a*b", "templateType": "anything"}, "d11": {"group": "Ungrouped variables", "name": "d11", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}, "b12": {"group": "Ungrouped variables", "name": "b12", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}, "det": {"group": "Ungrouped variables", "name": "det", "description": "", "definition": "a11*a22-a21*a12", "templateType": "anything"}, "pc": {"group": "Ungrouped variables", "name": "pc", "description": "", "definition": "p*c", "templateType": "anything"}, "q": {"group": "Ungrouped variables", "name": "q", "description": "", "definition": "random(2..10#1)", "templateType": "anything"}, "d22": {"group": "Ungrouped variables", "name": "d22", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}, "bat": {"group": "Ungrouped variables", "name": "bat", "description": "", "definition": "b*at", "templateType": "anything"}, "a22": {"group": "Ungrouped variables", "name": "a22", "description": "", "definition": "if(test*a11=a21*a12,test+1,test)", "templateType": "anything"}, "u": {"group": "Ungrouped variables", "name": "u", "description": "", "definition": "a+b", "templateType": "anything"}, "c12": {"group": "Ungrouped variables", "name": "c12", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}, "a11": {"group": "Ungrouped variables", "name": "a11", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}, "c21": {"group": "Ungrouped variables", "name": "c21", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}, "at": {"group": "Ungrouped variables", "name": "at", "description": "", "definition": "transpose(a)", "templateType": "anything"}, "a21": {"group": "Ungrouped variables", "name": "a21", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}, "d21": {"group": "Ungrouped variables", "name": "d21", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}, "adj": {"group": "Ungrouped variables", "name": "adj", "description": "", "definition": "matrix([a22,-a12],[-a21,a11])", "templateType": "anything"}, "v": {"group": "Ungrouped variables", "name": "v", "description": "", "definition": "pc-qd", "templateType": "anything"}, "qd": {"group": "Ungrouped variables", "name": "qd", "description": "", "definition": "q*d", "templateType": "anything"}, "d12": {"group": "Ungrouped variables", "name": "d12", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}, "d": {"group": "Ungrouped variables", "name": "d", "description": "", "definition": "matrix([d11,d12],[d21,d22])", "templateType": "anything"}, "a": {"group": "Ungrouped variables", "name": "a", "description": "", "definition": "matrix([a11,a12],[a21,a22])", "templateType": "anything"}, "c11": {"group": "Ungrouped variables", "name": "c11", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}, "p": {"group": "Ungrouped variables", "name": "p", "description": "", "definition": "random(-10..10#1 except 0 except 1 except q)", "templateType": "anything"}, "b11": {"group": "Ungrouped variables", "name": "b11", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}, "b21": {"group": "Ungrouped variables", "name": "b21", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}, "b22": {"group": "Ungrouped variables", "name": "b22", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}, "deta": {"group": "Ungrouped variables", "name": "deta", "description": "", "definition": "det(a)", "templateType": "anything"}, "b": {"group": "Ungrouped variables", "name": "b", "description": "", "definition": "matrix([b11,b12],[b21,b22])", "templateType": "anything"}, "ans2": {"group": "Ungrouped variables", "name": "ans2", "description": "", "definition": "c-d", "templateType": "anything"}, "ans": {"group": "Ungrouped variables", "name": "ans", "description": "", "definition": "a+b", "templateType": "anything"}, "test": {"group": "Ungrouped variables", "name": "test", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}, "a12": {"group": "Ungrouped variables", "name": "a12", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}, "c": {"group": "Ungrouped variables", "name": "c", "description": "", "definition": "matrix([c11,c12],[c21,c22])", "templateType": "anything"}, "c22": {"group": "Ungrouped variables", "name": "c22", "description": "", "definition": "random(-10..10#1)", "templateType": "anything"}}, "parts": [{"customMarkingAlgorithm": "", "gaps": [{"customMarkingAlgorithm": "", "answerSimplification": "all", "scripts": {}, "checkingType": "absdiff", "type": "jme", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "variableReplacements": [], "vsetRange": [0, 1], "variableReplacementStrategy": "originalfirst", "answer": "eval{{a11}+{b11}}", "expectedVariableNames": [], "unitTests": [], "failureRate": 1, "vsetRangePoints": 5, "checkVariableNames": false, "showCorrectAnswer": true, "marks": "0.25", "checkingAccuracy": 0.001, "showPreview": true}, {"customMarkingAlgorithm": "", "answerSimplification": "all", "scripts": {}, "checkingType": "absdiff", "type": "jme", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "variableReplacements": [], "vsetRange": [0, 1], "variableReplacementStrategy": "originalfirst", "answer": "eval{{a12}+{b12}}", "expectedVariableNames": [], "unitTests": [], "failureRate": 1, "vsetRangePoints": 5, "checkVariableNames": false, "showCorrectAnswer": true, "marks": "0.25", "checkingAccuracy": 0.001, "showPreview": true}, {"customMarkingAlgorithm": "", "answerSimplification": "all", "scripts": {}, "checkingType": "absdiff", "type": "jme", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "variableReplacements": [], "vsetRange": [0, 1], "variableReplacementStrategy": "originalfirst", "answer": "eval{{a21}+{b21}}", "expectedVariableNames": [], "unitTests": [], "failureRate": 1, "vsetRangePoints": 5, "checkVariableNames": false, "showCorrectAnswer": true, "marks": "0.25", "checkingAccuracy": 0.001, "showPreview": true}, {"customMarkingAlgorithm": "", "answerSimplification": "all", "scripts": {}, "checkingType": "absdiff", "type": "jme", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "variableReplacements": [], "vsetRange": [0, 1], "variableReplacementStrategy": "originalfirst", "answer": "eval{{a22}+{b22}}", "expectedVariableNames": [], "unitTests": [], "failureRate": 1, "vsetRangePoints": 5, "checkVariableNames": false, "showCorrectAnswer": true, "marks": "0.25", "checkingAccuracy": 0.001, "showPreview": true}], "scripts": {}, "type": "gapfill", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "sortAnswers": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "unitTests": [], "showCorrectAnswer": true, "marks": 0, "prompt": "
$\\var{a}+\\var{b}$
\n\n$\\Bigg($ | \n[[0]] | \n[[1]] | \n$\\Bigg)$ | \n
[[2]] | \n[[3]] | \n
$\\var{p}\\var{c}-\\var{q}\\var{d}$
\n$\\Bigg($ | \n[[0]] | \n[[1]] | \n$\\Bigg)$ | \n
[[2]] | \n[[3]] | \n
Find the answers to the following matrix calculations, filling in your answers in the spaces provided.", "preamble": {"css": "", "js": ""}, "advice": "
(a)
\n$\\var{a}+\\var{b}=\\var{u}$
\nJust add corresponding elements together.
\n(b)
\n$\\var{p}\\var{c}-\\var{q}\\var{d}$
\nMultiply each element of the first matrix by $\\var{p}$...
\n$\\var{p}\\var{c}=\\var{pc}$
\n...and multiply each element of the second matrix by $\\var{q}$.
$\\var{q}\\var{d}=\\var{qd}$
\nFinally, subtract corresponding elements
\n$\\var{p}\\var{c}-\\var{q}\\var{d}=\\var{pc}-\\var{qd}=\\var{v}$
\n\nFor more explanation, look for relevant resources in the 'Matrices' section on our Maths Study Skills page.
\n\n\n\n\n\n
\n | \n | \n | \n |
\n | \n |
Addition, subtraction and multiplication of 2 x 2 matrices and multiplication by a scalar.
\n(Last three parts of original question removed.)
"}, "rulesets": {"ruleset0": []}, "ungrouped_variables": ["a21", "a22", "ab", "ans2", "b22", "b21", "at", "ans", "d11", "d12", "p", "pc", "b12", "b11", "test", "c12", "c11", "adj", "a", "a11", "a12", "c", "b", "c22", "bat", "c21", "d", "deta", "d22", "det", "q", "d21", "u", "qd", "v"], "tags": [], "variablesTest": {"condition": "", "maxRuns": 100}, "type": "question", "contributors": [{"name": "Ioannis Lignos", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/757/"}]}]}], "contributors": [{"name": "Ioannis Lignos", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/757/"}]}