// Numbas version: finer_feedback_settings {"name": "EG3101 EG5116 EG4103 Matrices: Multiplying two 2x2 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 2x2 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:

\n

If \\[  A=\\left( \\begin{array}{ccc}
a & b  \\\\
c & d  \\end{array} \\right),\\]

\n

and \\[ B=\\left( \\begin{array}{ccc}
e & f \\\\
g & h \\end{array} \\right)\\],

\n

then \\[ AB=\\left( \\begin{array}{ccc}
ae+bg & af+bh \\\\
ce+dg & cf+dh \\end{array} \\right)\\]

\n

 

\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..6)*random(1,1,1,-1),2),2)),2)", "templateType": "anything", "group": "Ungrouped variables", "name": "matrices", "description": "

A couple of random matrices to multiply together

"}}, "metadata": {"description": "

Multiplying two 2x2 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/"}]}