// Numbas version: exam_results_page_options {"name": "Sums of matrices (same as WBQ 1.22)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Sums of matrices (same as WBQ 1.22)", "tags": ["matrix addition", "matrix sum"], "metadata": {"description": "

simple sums of matrices and scalar mult of matrices.

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

Let \\(A=\\var{A}\\), \\(B=\\var{B}\\), \\(C=\\var{C}\\), \\(D=\\var{D}\\), \\(E=\\var{G}\\), \\(F=\\var{F}\\), and \\(\\lambda=\\var{lambda}\\).

", "advice": "

We can add matrices which have the same size, so the same number of rows and columns. So \\(A\\) and \\(B\\) match together, \\(C\\) and \\(D\\), and \\(E\\) and \\(F\\). We can also add any matrix to itself.

\n

When we add matrices, we add entry by entry. You can see the answers revealed above. (You may have to click back to the relevant part with the menu at the top.)

\n

Any matrix can be multiplied by a scalar: every entry is multiplied individually by the scalar. You can see the answers revealed above.

", "rulesets": {}, "extensions": [], "variables": {"A": {"name": "A", "group": "Ungrouped variables", "definition": "matrix([-1,2],[0,1])", "description": "", "templateType": "anything"}, "B": {"name": "B", "group": "Ungrouped variables", "definition": "matrix([1,3],[-1,2])", "description": "", "templateType": "anything"}, "C": {"name": "C", "group": "Ungrouped variables", "definition": "matrix([0,1,-2],[1,2,3])", "description": "", "templateType": "anything"}, "D": {"name": "D", "group": "Ungrouped variables", "definition": "matrix([0,0,0],[0,0,0])", "description": "", "templateType": "anything"}, "G": {"name": "G", "group": "Ungrouped variables", "definition": "vector(1,-3,-3)", "description": "", "templateType": "anything"}, "F": {"name": "F", "group": "Ungrouped variables", "definition": "vector(-1,3,2)", "description": "", "templateType": "anything"}, "lambda": {"name": "lambda", "group": "Ungrouped variables", "definition": "3", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": "100"}, "ungrouped_variables": ["A", "B", "C", "D", "G", "F", "lambda"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Which sums are possible?", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [{"label": "Calculate the sums", "rawLabel": "", "otherPart": 1, "variableReplacements": [], "availabilityCondition": "answered", "penalty": "", "penaltyAmount": 0, "lockAfterLeaving": true}], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Which of the following sums are possible? If e.g. A+B is possible, select the tick-box in row A and column B. You will receive one mark for a correct answer and -1 for an incorrect answer.

\n

[[0]]

", "gaps": [{"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": "Which matrices can be added", "minMarks": 0, "maxMarks": 0, "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": false, "shuffleAnswers": false, "displayType": "checkbox", "warningType": "none", "showCellAnswerState": true, "choices": ["\\(A\\)", "\\(B\\)", "\\(C\\)", "\\(D\\)", "\\(E\\)", "\\(F\\)"], "matrix": [["1", "1", "-1", "-1", "-1", "-1"], ["1", "1", "-1", "-1", "-1", "-1"], ["-1", "-1", "1", "1", "-1", "-1"], ["-1", "-1", "1", "1", "-1", "-1"], ["-1", "-1", "-1", "-1", "1", "1"], ["-1", "-1", "-1", "-1", "1", "1"]], "layout": {"type": "uppertriangle", "expression": ""}, "answers": ["\\(A\\)", "\\(B\\)", "\\(C\\)", "\\(D\\)", "\\(E\\)", "\\(F\\)"]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Calculate the sums", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [{"label": "Scalar multiplication", "rawLabel": "", "otherPart": 2, "variableReplacements": [], "availabilityCondition": "answered", "penalty": "", "penaltyAmount": 0, "lockAfterLeaving": false}], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Here are some of the matrix sums that are possible (but not all). Calculate these sums.

\n

\\(A+B= \\) [[0]]

\n

\\(C+D= \\) [[1]]

\n

\\(E+F= \\) [[2]]

", "gaps": [{"type": "matrix", "useCustomName": true, "customName": "A+B", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": "Adding matrices", "correctAnswer": "{A+B}", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}, {"type": "matrix", "useCustomName": true, "customName": "C+D", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": "Adding matrices", "correctAnswer": "{C+D}", "correctAnswerFractions": false, "numRows": "2", "numColumns": "3", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}, {"type": "matrix", "useCustomName": true, "customName": "E+F", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": "Adding matrices", "correctAnswer": "{G+F}", "correctAnswerFractions": false, "numRows": "3", "numColumns": "1", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "Scalar multiplication", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate the following scalar multiplications:

\n

\\(\\lambda B = \\) [[0]]

\n

\\(\\lambda C = \\) [[1]]

\n

\\(\\lambda D= \\) [[2]]

\n

\\(\\lambda E= \\) [[3]]

", "gaps": [{"type": "matrix", "useCustomName": true, "customName": "lambda B", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": "Scalar multiplication", "alternatives": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "

It looks like you did \\(\\lambda A\\) instead of \\(\\lambda B\\).

", "useAlternativeFeedback": false, "correctAnswer": "{lambda*A}", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}], "correctAnswer": "{lambda*B}", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}, {"type": "matrix", "useCustomName": true, "customName": "lambda C", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": "Scalar multiplication", "correctAnswer": "{lambda*C}", "correctAnswerFractions": false, "numRows": "2", "numColumns": "3", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}, {"type": "matrix", "useCustomName": true, "customName": "lambda D", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": "Scalar multiplication", "correctAnswer": "{lambda*D}", "correctAnswerFractions": false, "numRows": "2", "numColumns": "3", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}, {"type": "matrix", "useCustomName": true, "customName": "lambda E", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": "Scalar multiplication", "correctAnswer": "{lambda*G}", "correctAnswerFractions": false, "numRows": "3", "numColumns": "1", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}], "sortAnswers": false}], "partsMode": "explore", "maxMarks": "23", "objectives": [{"name": "Which matrices can be added", "limit": "9", "mode": "sum"}, {"name": "Adding matrices", "limit": "6", "mode": "sum"}, {"name": "Scalar multiplication", "limit": "8", "mode": "sum"}], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Julia Goedecke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/5121/"}]}]}], "contributors": [{"name": "Julia Goedecke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/5121/"}]}