// Numbas version: finer_feedback_settings {"name": "EG3101 EG5116 EG4103 Matrices: Multiplying two 3x3 matrices", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["matrices"], "name": "EG3101 EG5116 EG4103 Matrices: Multiplying two 3x3 matrices", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "
Remember : matrix multiplication requires each row of the first matrix A be multiplied by each column of the second matrix B:
\nIf \\[ A=\\left( \\begin{array}{ccc}
a & b & c \\\\d & e & f\\\\g & h & j \\end{array} \\right),\\]
and \\[ B=\\left( \\begin{array}{ccc}
k & l & m \\\\n & p & q\\\\r & s & t\\end{array} \\right)\\],
then \\[ AB=\\left( \\begin{array}{ccc}
ak+bn+cr & al+bp+cs & am+bq+ct \\\\dk+en+fr & dl+ep+fs & dm+eq+ft \\\\gk+hn+jr & gl+hp+js & gm+hq+jt
\\end{array} \\right)\\]
\n
\n", "rulesets": {}, "parts": [{"prompt": "
What is $\\simplify{{matrices[0]}*{matrices[1]}}$?
\n[[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"numRows": 1, "numColumns": 1, "allowResize": true, "allowFractions": false, "variableReplacements": [], "markPerCell": false, "variableReplacementStrategy": "originalfirst", "tolerance": 0, "correctAnswerFractions": false, "showCorrectAnswer": true, "correctAnswer": "matrices[0]*matrices[1]", "scripts": {}, "marks": 1, "type": "matrix"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "You will possibly need to adjust the number of rows and the number of columns your solution requires by entering the correct values for your solution; the template will then alter to hold your solution.
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"matrices": {"definition": "repeat(matrix(repeat(repeat(random(0..10)*random(1,1,1,-1),3),3)),3)", "templateType": "anything", "group": "Ungrouped variables", "name": "matrices", "description": "A couple of random matrices to multiply together
"}}, "metadata": {"description": "Multiplying two 3x3 matrices.
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "contributors": [{"name": "bryan pearce", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/347/"}]}]}], "contributors": [{"name": "bryan pearce", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/347/"}]}