// Numbas version: finer_feedback_settings {"name": "Owen's copy of Multiply two matrices", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Owen's copy of Multiply two matrices", "tags": [], "metadata": {"description": "

A really simple question which asks the student to multiply two matrices.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "

Given the two matrices $\\mathbf{A}$ and $\\mathbf{B}$, the question is asking us to find the matrix product $\\mathbf{A} \\mathbf{B}$. That is we are multiplying matrices together, so we use the \"run and dive\" method (see your notes). In other words, to find the element in the $i^\\mathrm{th}$ and $j^\\mathrm{th}$ column of the product matrix $\\mathbf{A} \\mathbf{B}$ form the vector dot product of the $i^\\mathrm{th}$ row of the matrix $\\mathbf{A}$ with the $j^\\mathrm{th}$ column of the matrix $\\mathbf{B}$ (see your vectors notes).

", "rulesets": {}, "extensions": [], "variables": {"matrices": {"name": "matrices", "group": "Ungrouped variables", "definition": "repeat(matrix(repeat(repeat(random(0..6)*random(1,1,1,-1),2),2)),2)", "description": "

A couple of random matrices to multiply together

", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["matrices"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

What is $\\simplify{{matrices[0]}*{matrices[1]}}$?

\n

[[0]]

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "correctAnswer": "matrices[0]*matrices[1]", "correctAnswerFractions": false, "numRows": 1, "numColumns": 1, "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false}], "sortAnswers": false}], "type": "question", "contributors": [{"name": "Peter Johnston", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/771/"}, {"name": "Owen Jepps", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1195/"}]}]}], "contributors": [{"name": "Peter Johnston", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/771/"}, {"name": "Owen Jepps", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1195/"}]}