// Numbas version: finer_feedback_settings {"name": "Matrices: a synoptic quiz", "metadata": {"description": "

Quiz designed as summary test for MAST resource: Matrices (A Level Further Maths content)

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", "", "", "", "", "", ""], "variable_overrides": [[], [], [], [], [], [], [], [], [], []], "questions": [{"name": "Order of a Matrix and Subscript Notation", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Tamsin Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/14108/"}, {"name": "Fraser Buxton", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24224/"}, {"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}], "tags": [], "metadata": {"description": "

Tests understanding of order and subscript notation for matrices (three parts)

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "
\n

Consider the matrix:

\n$$
\\boldsymbol{M} = \\var{B}.
$$
", "advice": "

a)

\n

The order of a matrix is written as $ ROWS \\times COLUMNS$ . In this example there are $\\var{n}$ rows and $\\var{m}$ columns so we would say this matrix has order $\\var{n}\\times\\var{m}$.

\n

\n

b)

\n

$\\boldsymbol{M}_{\\var{n1},\\var{m1}}$ means you are looking for the element in row $\\var{n1}$ and in column $\\var{m1}$. In this case that means we are looking at the element $\\var{E}$.

\n

\n

c)

\n

The elements of $\\boldsymbol{M}_{\\var{n2},}$ refers to row $\\var{n2}$ of matrix $\\boldsymbol{M}$ as the subscript is written ${\\var{n2},}$ meaning row $\\var{n2}$. Hence we have $\\var{C}$

\n

The elements of $\\boldsymbol{M}_{,\\var{m2}}$ refers to column $\\var{m2}$ of matrix $\\boldsymbol{M}$ as the subscript is written ${,\\var{m2}}$ meaning column $\\var{m2}$. Hence we have $\\var{C}$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"n": {"name": "n", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "

Rows

", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "

columns

", "templateType": "anything", "can_override": false}, "B": {"name": "B", "group": "Ungrouped variables", "definition": "matrix(repeat(repeat(random(-10..10),m),n))", "description": "", "templateType": "anything", "can_override": false}, "n1": {"name": "n1", "group": "Ungrouped variables", "definition": "random(1..n)", "description": "", "templateType": "anything", "can_override": false}, "m1": {"name": "m1", "group": "Ungrouped variables", "definition": "random(1..m)", "description": "", "templateType": "anything", "can_override": false}, "E": {"name": "E", "group": "Ungrouped variables", "definition": "B[n1-1][m1-1]", "description": "", "templateType": "anything", "can_override": false}, "n2": {"name": "n2", "group": "Ungrouped variables", "definition": "random(1..n)", "description": "", "templateType": "anything", "can_override": false}, "C": {"name": "C", "group": "Ungrouped variables", "definition": "if(row_or_col=0,matrix(B[n2-1]),transpose(matrix(transpose(B)[m2-1])))", "description": "", "templateType": "anything", "can_override": false}, "row_or_col": {"name": "row_or_col", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "", "templateType": "anything", "can_override": false}, "m2": {"name": "m2", "group": "Ungrouped variables", "definition": "random(1..m)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "m", "B", "n1", "m1", "E", "n2", "C", "row_or_col", "m2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Write down the order of $\\boldsymbol{M}$

\n

[[0]]$\\times$ [[1]]

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{n}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{M}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

State the value of $m_{\\var{n1},\\var{m1}}$

\n

$m_{\\var{n1},\\var{m1}} = $ [[0]]

\n

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{E}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Write out the elements of $\\boldsymbol{M}_{\\var{n2},}$ Write out the elements of $\\boldsymbol{M}_{,\\var{m2}}$

\n

$\\boldsymbol{M}_{\\var{n2},} = $ $\\boldsymbol{M}_{,\\var{m2}} = $ [[0]]

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "correctAnswer": "{C}", "correctAnswerFractions": false, "numRows": 1, "numColumns": 1, "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": "10", "minRows": 1, "maxRows": "10", "prefilledCells": ""}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Matrix addition and subtraction (short)", "extensions": [], "custom_part_types": [], "resources": ["question-resources/matrix_add.gif"], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}, {"name": "Tamsin Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/14108/"}, {"name": "Fraser Buxton", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24224/"}, {"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}], "tags": [], "metadata": {"description": "Matrix addition (pre-defined dimensions in answer)", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

Let:

\n

$$
\\boldsymbol{A}=\\var{A}, \\ \\ \\boldsymbol{B}=\\var{B}, \\ \\ \\boldsymbol{C}=\\var{C}.
$$

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"n2": {"name": "n2", "group": "", "definition": "random(2 .. 2#1)", "description": "", "templateType": "randrange", "can_override": false}, "m2": {"name": "m2", "group": "", "definition": "random(2 .. 3#1)", "description": "", "templateType": "randrange", "can_override": false}, "A": {"name": "A", "group": "", "definition": "transpose(matrix(repeat(repeat(random(0..9),n2),m2)))", "description": "", "templateType": "anything", "can_override": false}, "B": {"name": "B", "group": "", "definition": "transpose(matrix(repeat(repeat(random(-3..9),n2),m2)))", "description": "", "templateType": "anything", "can_override": false}, "C": {"name": "C", "group": "", "definition": "transpose(matrix(repeat(repeat(random(-9..5),n2),m2)))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "", "variables": ["n2", "m2", "A", "B", "C"]}], "functions": {"calculateTrace": {"parameters": [], "type": "number", "language": "javascript", "definition": ""}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

$A+B=$ [[0]]

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "correctAnswer": "{A}+{B}", "correctAnswerFractions": false, "numRows": "{n2}", "numColumns": "{m2}", "allowResize": false, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": "", "gridlines": "none", "gridlinesCustomRows": "repeat(false, numrows-1)", "gridlinesCustomColumns": "repeat(false, numcolumns-1)"}], "sortAnswers": false, "inlineCorrectAnswer": true}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

$B-C=$[[0]]

\n

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "correctAnswer": "{B}-{C}", "correctAnswerFractions": false, "numRows": "{n2}", "numColumns": "{m2}", "allowResize": false, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": "", "gridlines": "none", "gridlinesCustomRows": "repeat(false, numrows-1)", "gridlinesCustomColumns": "repeat(false, numcolumns-1)"}], "sortAnswers": false, "inlineCorrectAnswer": true}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "Names of special matrices", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}], "tags": ["diagonal", "identity", "lower triangular", "matrices", "matrix", "square", "terminology", "triangular", "upper triangular", "zero"], "metadata": {"description": "

Matching exercise with terminology: zero, square, diagonal, identity, upper/lower triangular

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

Match each matrix to exactly one description.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": true, "shuffleAnswers": false, "displayType": "radiogroup", "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["$\\begin{pmatrix} 0 & 0 \\\\ 0 & 0\\end{pmatrix}$", "$\\begin{pmatrix} 1 & 0 & 0 \\\\ 0 & 1 & 0 \\\\ 0 & 0 & 1\\end{pmatrix}$", "$\\begin{pmatrix} 7 & 0 \\\\ 0 & -3\\end{pmatrix}$", "$\\begin{pmatrix} 1 & -3 & 5 \\\\ 0 & 9 & -2 \\\\ 0 & 0 & 7\\end{pmatrix}$", "$\\begin{pmatrix} 1 & 0 \\\\ 1 & 1\\end{pmatrix}$", "$\\begin{pmatrix} 8 & 0 & 5 \\\\ 4 & 0 & -12 \\\\ -5 & 2 & 1\\end{pmatrix}$"], "matrix": [["1", 0, 0, 0, 0, 0], [0, "1", 0, 0, 0, 0], [0, 0, "1", 0, 0, 0], [0, 0, 0, "1", 0, 0], [0, 0, 0, 0, "1", 0], [0, 0, 0, 0, 0, "1"]], "layout": {"type": "all", "expression": ""}, "answers": ["Zero", "Identity", "Diagonal", "Upper triangular", "Lower triangular", "Square"], "choicesHeader": "", "answersHeader": ""}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Matrices: scalar multiplication (2x2)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}], "tags": [], "metadata": {"description": "

Single part question with 2x2 matrix multiplied by a small integer.

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

Calculate the scalar multiple of the matrix below.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"A11": {"name": "A11", "group": "Matrix A", "definition": "random(-2..5)", "description": "", "templateType": "anything", "can_override": false}, "A12": {"name": "A12", "group": "Matrix A", "definition": "random(-2..5)", "description": "", "templateType": "anything", "can_override": false}, "A21": {"name": "A21", "group": "Matrix A", "definition": "random(-2..5)", "description": "", "templateType": "anything", "can_override": false}, "A22": {"name": "A22", "group": "Matrix A", "definition": "random(-2..5)", "description": "", "templateType": "anything", "can_override": false}, "scalar": {"name": "scalar", "group": "Matrix A", "definition": "random(2..10)", "description": "", "templateType": "anything", "can_override": false}, "Ans": {"name": "Ans", "group": "Ungrouped variables", "definition": "matrix([scalar*a11,scalar*a12],[scalar*a21,scalar*a22])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["Ans"], "variable_groups": [{"name": "Matrix A", "variables": ["A11", "A12", "A21", "A22", "scalar"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

$\\var{scalar}\\begin{pmatrix}\\var{A11}&\\var{A12}\\\\\\var{A21}&\\var{A22} \\end{pmatrix}=$[[0]]

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "correctAnswer": "{ans}", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": "", "gridlines": "none", "gridlinesCustomRows": "repeat(false, numrows-1)", "gridlinesCustomColumns": "repeat(false, numcolumns-1)"}], "sortAnswers": false, "inlineCorrectAnswer": true}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "Matrix Multiplication", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}, {"name": "Tamsin Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/14108/"}, {"name": "Fraser Buxton", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24224/"}, {"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}], "tags": [], "metadata": {"description": "

Multiplication of two matrices.

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

$$
\\boldsymbol{A}=\\begin{pmatrix} \\var{a11}&\\var{a12}&\\var{a13}\\\\ \\var{a21}&\\var{a22}&\\var{a23}\\\\ \\end{pmatrix} ,\\boldsymbol{B}=\\begin{pmatrix} \\var{b11}&\\var{b12}\\\\ \\var{b21}&\\var{b22}\\\\ \\var{b31}&\\var{b32}\\\\\\end{pmatrix}
$$

\n

\n

", "advice": "", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers"]}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"ba23": {"name": "ba23", "group": "Ungrouped variables", "definition": "{b21}*{a13}+{b22}*{a23}", "description": "", "templateType": "anything", "can_override": false}, "ba33": {"name": "ba33", "group": "Ungrouped variables", "definition": "{b31}*{a13}+{b32}*{a23}", "description": "", "templateType": "anything", "can_override": false}, "a21": {"name": "a21", "group": "Ungrouped variables", "definition": "random(0 .. 10#1)", "description": "", "templateType": "randrange", "can_override": false}, "ba22": {"name": "ba22", "group": "Ungrouped variables", "definition": "{b21}*{a12}+{b22}*{a22}", "description": "", "templateType": "anything", "can_override": false}, "b21": {"name": "b21", "group": "Ungrouped variables", "definition": "random(2 .. 11#1)", "description": "", "templateType": "randrange", "can_override": false}, "a12": {"name": "a12", "group": "Ungrouped variables", "definition": "{a11}-1", "description": "", "templateType": "anything", "can_override": false}, "b32": {"name": "b32", "group": "Ungrouped variables", "definition": "random(0 .. 14#1)", "description": "", "templateType": "randrange", "can_override": false}, "b12": {"name": "b12", "group": "Ungrouped variables", "definition": "random(1 .. 8#1)", "description": "", "templateType": "randrange", "can_override": false}, "ab21": {"name": "ab21", "group": "Ungrouped variables", "definition": "{a21}*{b11}+{a22}*{b21}+{a23}*{b31}", "description": "", "templateType": "anything", "can_override": false}, "b22": {"name": "b22", "group": "Ungrouped variables", "definition": "random(2 .. 11#1)", "description": "", "templateType": "randrange", "can_override": false}, "a13": {"name": "a13", "group": "Ungrouped variables", "definition": "random(4 .. 12#1)", "description": "", "templateType": "randrange", "can_override": false}, "b11": {"name": "b11", "group": "Ungrouped variables", "definition": "random(1 .. 9#1)", "description": "", "templateType": "randrange", "can_override": false}, "ab11": {"name": "ab11", "group": "Ungrouped variables", "definition": "{a11}*{b11}+{a12}*{b21}+{a13}*{b31}", "description": "", "templateType": "anything", "can_override": false}, "ba21": {"name": "ba21", "group": "Ungrouped variables", "definition": "{b21}*{a11}+{b22}*{a21}", "description": "", "templateType": "anything", "can_override": false}, "ba13": {"name": "ba13", "group": "Ungrouped variables", "definition": "{b11}*{a13}+{b12}*{a23}", "description": "", "templateType": "anything", "can_override": false}, "ba31": {"name": "ba31", "group": "Ungrouped variables", "definition": "{b31}*{a11}+{b32}*{a21}", "description": "", "templateType": "anything", "can_override": false}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "random(1 .. 9#1)", "description": "", "templateType": "randrange", "can_override": false}, "ba32": {"name": "ba32", "group": "Ungrouped variables", "definition": "{b31}*{a12}+{b32}*{a22}", "description": "", "templateType": "anything", "can_override": false}, "a11": {"name": "a11", "group": "Ungrouped variables", "definition": "random(1 .. 10#1)", "description": "", "templateType": "randrange", "can_override": false}, "a22": {"name": "a22", "group": "Ungrouped variables", "definition": "random(1 .. 9#1)", "description": "", "templateType": "randrange", "can_override": false}, "ab22": {"name": "ab22", "group": "Ungrouped variables", "definition": "{a21}*{b12}+{a22}*{b22}+{a23}*{b32}", "description": "", "templateType": "anything", "can_override": false}, "ba12": {"name": "ba12", "group": "Ungrouped variables", "definition": "{b11}*{a12}+{b12}*{a22}", "description": "", "templateType": "anything", "can_override": false}, "ba11": {"name": "ba11", "group": "Ungrouped variables", "definition": "{b11}*{a11}+{b12}*{a21}", "description": "", "templateType": "anything", "can_override": false}, "ab12": {"name": "ab12", "group": "Ungrouped variables", "definition": "{a11}*{b12}+{a12}*{b22}+{a13}*{b32}", "description": "", "templateType": "anything", "can_override": false}, "a23": {"name": "a23", "group": "Ungrouped variables", "definition": "random(10 .. 16#1)", "description": "", "templateType": "randrange", "can_override": false}, "b31": {"name": "b31", "group": "Ungrouped variables", "definition": "random(0 .. 5#1)", "description": "", "templateType": "randrange", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a11", "a12", "a21", "a22", "k", "a13", "a23", "b11", "b12", "b21", "b22", "b31", "b32", "ab11", "ab12", "ab21", "ab22", "ba11", "ba12", "ba13", "ba21", "ba22", "ba23", "ba31", "ba32", "ba33"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

First set up the size of the answer matrix (choose the correct number of rows and columns in the boxes) and then input the entries:

\n

$\\boldsymbol{AB} =$ [[0]]

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "correctAnswer": "matrix([\n [ab11,ab12],\n [ab21,ab22]\n])", "correctAnswerFractions": false, "numRows": "1", "numColumns": "1", "allowResize": true, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": "", "gridlines": "none", "gridlinesCustomRows": "repeat(false, numrows-1)", "gridlinesCustomColumns": "repeat(false, numcolumns-1)"}], "sortAnswers": false, "inlineCorrectAnswer": true}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "Conformability of matrices under multiplication", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Tamsin Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/14108/"}, {"name": "Fraser Buxton", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24224/"}, {"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}], "tags": ["conformability", "matrices", "matrix", "matrix multiplication"], "metadata": {"description": "

3-part question with drop-downs testing understanding of when matrices are conformable.

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

For each of the following pairs of matrices, determine whether they are conformable for multiplication

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"conf1": {"name": "conf1", "group": "q1", "definition": "random(true,false)", "description": "", "templateType": "anything", "can_override": false}, "m1q1": {"name": "m1q1", "group": "q1", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "n1q1": {"name": "n1q1", "group": "q1", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "m2q1": {"name": "m2q1", "group": "q1", "definition": "if(conf1,n1q1,random(1..5))", "description": "", "templateType": "anything", "can_override": false}, "n2q1": {"name": "n2q1", "group": "q1", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "conf2": {"name": "conf2", "group": "q2", "definition": "random(true,false)", "description": "", "templateType": "anything", "can_override": false}, "m1q2": {"name": "m1q2", "group": "q2", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "n1q2": {"name": "n1q2", "group": "q2", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "m2q2": {"name": "m2q2", "group": "q2", "definition": "if(conf2,n1q2,random(1..5))", "description": "", "templateType": "anything", "can_override": false}, "n2q2": {"name": "n2q2", "group": "q2", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "conf3": {"name": "conf3", "group": "q3", "definition": "random(true,false)", "description": "", "templateType": "anything", "can_override": false}, "m1q3": {"name": "m1q3", "group": "q3", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "n1q3": {"name": "n1q3", "group": "q3", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "m2q3": {"name": "m2q3", "group": "q3", "definition": "if(conf3,n1q3,random(1..5))", "description": "", "templateType": "anything", "can_override": false}, "n2q3": {"name": "n2q3", "group": "q3", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "A": {"name": "A", "group": "q1", "definition": "transpose(matrix(repeat(repeat(random(0..9),m1q1),n1q1)))", "description": "", "templateType": "anything", "can_override": false}, "B": {"name": "B", "group": "q1", "definition": "transpose(matrix(repeat(repeat(random(0..9),m2q1),n2q1)))", "description": "", "templateType": "anything", "can_override": false}, "C": {"name": "C", "group": "q2", "definition": "transpose(matrix(repeat(repeat(random(0..9),m1q2),n1q2)))", "description": "", "templateType": "anything", "can_override": false}, "D": {"name": "D", "group": "q2", "definition": "transpose(matrix(repeat(repeat(random(0..9),m2q2),n2q2)))", "description": "", "templateType": "anything", "can_override": false}, "E": {"name": "E", "group": "q3", "definition": "transpose(matrix(repeat(repeat(random(0..9),m1q3),n1q3)))", "description": "", "templateType": "anything", "can_override": false}, "F": {"name": "F", "group": "q3", "definition": "transpose(matrix(repeat(repeat(random(0..9),m2q3),n2q3)))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "not(conf1 = false and n1q1 = m2q1) and \nnot(conf2 = false and n1q2 = m2q2) and \nnot(conf3 = false and n1q3 = m2q3)", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "q1", "variables": ["conf1", "m1q1", "n1q1", "m2q1", "n2q1", "A", "B"]}, {"name": "q2", "variables": ["conf2", "m1q2", "n1q2", "m2q2", "n2q2", "C", "D"]}, {"name": "q3", "variables": ["conf3", "m1q3", "n1q3", "m2q3", "n2q3", "E", "F"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Consider:

\n

$$
\\boldsymbol{A} = \\var{A}, \\boldsymbol{B} = \\var{B}
$$

\n

The product $\\boldsymbol{AB}$ [[0]], and therefore the matrices are [[1]].

", "gaps": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showBlankOption": true, "showCellAnswerState": false, "interpretedAnswerForm": "list of list of boolean", "choices": "['exists','does not exist']", "matrix": "[if(conf1,1,0),if(conf1,0,1)]"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showBlankOption": true, "showCellAnswerState": false, "interpretedAnswerForm": "list of list of boolean", "choices": "['conformable for multiplication','not conformable for multiplication']", "matrix": "[if(conf1,1,0),if(conf1,0,1)]"}], "sortAnswers": false, "inlineCorrectAnswer": true}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Consider:

\n

$$
\\boldsymbol{C} = \\var{C}, \\boldsymbol{D} = \\var{D}
$$

\n

The product $\\boldsymbol{CD}$ [[0]], and therefore the matrices are [[1]].

", "gaps": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showBlankOption": true, "showCellAnswerState": false, "interpretedAnswerForm": "list of list of boolean", "choices": "['exists','does not exist']", "matrix": "[if(conf2,1,0),if(conf2,0,1)]"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showBlankOption": true, "showCellAnswerState": false, "interpretedAnswerForm": "list of list of boolean", "choices": "['conformable for multiplication','not conformable for multiplication']", "matrix": "[if(conf2,1,0),if(conf2,0,1)]"}], "sortAnswers": false, "inlineCorrectAnswer": true}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Consider:

\n

$$
\\boldsymbol{E} = \\var{E}, \\boldsymbol{F} = \\var{F}
$$

\n

The product $\\boldsymbol{EF}$ [[0]], and therefore the matrices are [[1]].

", "gaps": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showBlankOption": true, "showCellAnswerState": false, "interpretedAnswerForm": "list of list of boolean", "choices": "['exists','does not exist']", "matrix": "[if(conf3,1,0),if(conf3,0,1)]"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showBlankOption": true, "showCellAnswerState": false, "interpretedAnswerForm": "list of list of boolean", "choices": "['conformable for multiplication','not conformable for multiplication']", "matrix": "[if(conf3,1,0),if(conf3,0,1)]"}], "sortAnswers": false, "inlineCorrectAnswer": true}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "Determinant of a 2x2 Matrix", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Mark Patterson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/5064/"}, {"name": "Tamsin Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/14108/"}, {"name": "Fraser Buxton", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24224/"}, {"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}], "tags": [], "metadata": {"description": "

Exercises on calculating the determinant of 2x2 and 3x3 matrices.

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

$$
\\boldsymbol{A} = \\simplify{{maA}}
$$

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"maA": {"name": "maA", "group": "Ungrouped variables", "definition": "matrixrandom(2,2)", "description": "", "templateType": "anything", "can_override": false}, "maB": {"name": "maB", "group": "Ungrouped variables", "definition": "matrixrandom(2,2)", "description": "", "templateType": "anything", "can_override": false}, "display": {"name": "display", "group": "Ungrouped variables", "definition": "random(1,2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["maA", "maB", "display"], "variable_groups": [], "functions": {"matrixrandom": {"parameters": [["rows", "integer"], ["columns", "number"]], "type": "matrix", "language": "jme", "definition": "matrix(repeat(repeat(random(0..9)*(random(1,1,1,-1)),columns),rows))"}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

$\\det \\textbf{A} = $   $|\\textbf{A}| = $  [[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "minValue": "det(maA)", "maxValue": "det(maA)", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false, "inlineCorrectAnswer": true}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "Inverse of a 2x2 matrix", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Shaheen Charlwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1819/"}, {"name": "Tamsin Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/14108/"}, {"name": "Fraser Buxton", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24224/"}, {"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}], "tags": [], "metadata": {"description": "

Find the determinant and inverse of a $2 \\times 2$ invertible matrix.

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

$$
\\boldsymbol{A} = \\var{a}
$$

", "advice": "", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers"]}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"a21": {"name": "a21", "group": "Matrix A", "definition": "random(-5..5) ", "description": "", "templateType": "anything", "can_override": false}, "a22": {"name": "a22", "group": "Matrix A", "definition": "random(-5..5)", "description": "", "templateType": "anything", "can_override": false}, "a11": {"name": "a11", "group": "Matrix A", "definition": "random(-5..5)", "description": "", "templateType": "anything", "can_override": false}, "a12": {"name": "a12", "group": "Matrix A", "definition": "random(-5..5)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Matrix A", "definition": "matrix([\n [a11,a12],\n [a21,a22]\n])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "det(a)<>0", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Matrix A", "variables": ["a11", "a12", "a21", "a22", "a"]}], "functions": {"inverse": {"parameters": [["m", "matrix"]], "type": "matrix", "language": "jme", "definition": "matrix([\n [m[1][1],-m[0][1]],\n [-m[1][0],m[0][0]]\n])/det(m)"}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Calculate $\\boldsymbol{A}^{-1}$

\n

Input all the elements of the matrix as fractions or integers and not as decimals.

\n

$\\boldsymbol{A}^{-1} = $ [[0]]

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "correctAnswer": "inverse(a)", "correctAnswerFractions": true, "numRows": "2", "numColumns": "2", "allowResize": false, "tolerance": "0.01", "markPerCell": false, "allowFractions": true, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": "", "gridlines": "none", "gridlinesCustomRows": "repeat(false, numrows-1)", "gridlinesCustomColumns": "repeat(false, numcolumns-1)"}], "sortAnswers": false, "inlineCorrectAnswer": true}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "Will's copy of Determinant of 3x3 Matrix", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Mark Patterson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/5064/"}, {"name": "Tamsin Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/14108/"}, {"name": "Fraser Buxton", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24224/"}, {"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}], "tags": [], "metadata": {"description": "

Exercises on calculating the determinant of 3x3 matrices.

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

Calculate the determinants of the following matrices.

", "advice": "

For simplicity, we will use the expansion of the first row to calculate our determinant

\n

a)

\n

We have:

\n

$$
\\begin{aligned}
\\det{A} &= a_1A_1 + b_1B_1+ c_1C_1 \\\\
&= \\var{maA[0][0]}
\\begin{vmatrix}
\\var{maA[1][1]} & \\var{maA[1][2]} \\\\
\\var{maA[2][1]} & \\var{maA[2][2]} \\\\
\\end{vmatrix} - \\var{maA[0][1]} \\begin{vmatrix}
\\var{maA[1][0]} & \\var{maA[1][2]} \\\\
\\var{maA[2][0]} & \\var{maA[2][2]} \\\\
\\end{vmatrix} + \\var{maA[0][2]} \\begin{vmatrix}
\\var{maA[1][0]} & \\var{maA[1][1]} \\\\
\\var{maA[2][0]} & \\var{maA[2][1]} \\\\
\\end{vmatrix} \\\\
&= \\var{maA[0][0]} \\times \\var{a1a} - \\left(\\var{maA[0][1]} \\times \\var{b1a}\\right) + \\var{maA[0][2]} \\times \\var{c1a} \\\\
&= \\var{deta}
\\end{aligned}
$$

\n

b)

\n

We have:

\n

$$
\\begin{aligned}
\\det{B} &= a_1A_1 + b_1B_1+ c_1C_1 \\\\
&= \\var{maB[0][0]}
\\begin{vmatrix}
\\var{maB[1][1]} & \\var{maB[1][2]} \\\\
\\var{maB[2][1]} & \\var{maB[2][2]} \\\\
\\end{vmatrix} - \\var{maB[0][1]} \\begin{vmatrix}
\\var{maB[1][0]} & \\var{maB[1][2]} \\\\
\\var{maB[2][0]} & \\var{maB[2][2]} \\\\
\\end{vmatrix} + \\var{maB[0][2]} \\begin{vmatrix}
\\var{maB[1][0]} & \\var{maB[1][1]} \\\\
\\var{maB[2][0]} & \\var{maB[2][1]} \\\\
\\end{vmatrix} \\\\
&= \\var{maB[0][0]} \\times \\var{a1b} - \\left(\\var{maB[0][1]} \\times \\var{b1b}\\right) + \\var{maB[0][2]} \\times \\var{c1b} \\\\
&= \\var{detb}
\\end{aligned}
$$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"maA": {"name": "maA", "group": "A", "definition": "matrixrandom(3,3)", "description": "", "templateType": "anything", "can_override": false}, "maB": {"name": "maB", "group": "B", "definition": "matrixrandom(3,3)", "description": "", "templateType": "anything", "can_override": false}, "A1a": {"name": "A1a", "group": "A", "definition": "maA[1][1]*maA[2][2]-maA[2][1]*maA[1][2]", "description": "", "templateType": "anything", "can_override": false}, "B1a": {"name": "B1a", "group": "A", "definition": "maA[1][0]*maA[2][2]-maA[2][0]*maA[1][2]", "description": "", "templateType": "anything", "can_override": false}, "C1a": {"name": "C1a", "group": "A", "definition": "maA[1][0]*maA[2][1]-maA[1][1]*maA[2][0]", "description": "", "templateType": "anything", "can_override": false}, "deta": {"name": "deta", "group": "A", "definition": "det(maa)", "description": "", "templateType": "anything", "can_override": false}, "a1b": {"name": "a1b", "group": "Ungrouped variables", "definition": "maB[1][1]*maB[2][2]-maB[2][1]*maB[1][2]", "description": "", "templateType": "anything", "can_override": false}, "b1b": {"name": "b1b", "group": "Ungrouped variables", "definition": "maB[1][0]*maB[2][2]-maB[2][0]*maB[1][2]", "description": "", "templateType": "anything", "can_override": false}, "c1b": {"name": "c1b", "group": "Ungrouped variables", "definition": "maB[1][0]*maB[2][1]-maB[1][1]*maB[2][0]", "description": "", "templateType": "anything", "can_override": false}, "detb": {"name": "detb", "group": "Ungrouped variables", "definition": "det(maB)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a1b", "b1b", "c1b", "detb"], "variable_groups": [{"name": "A", "variables": ["maA", "A1a", "B1a", "C1a", "deta"]}, {"name": "B", "variables": ["maB"]}], "functions": {"matrixrandom": {"parameters": [["rows", "integer"], ["columns", "number"]], "type": "matrix", "language": "jme", "definition": "matrix(repeat(repeat(random(0..9)*(random(1,1,1,-1)),columns),rows))"}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate the determinant of $A = \\simplify{{maA}}$

", "minValue": "det(maA)", "maxValue": "det(maA)", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate the determinant of $B = \\simplify{{maB}}$

", "minValue": "det(maB)", "maxValue": "det(maB)", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}, {"name": "Solving a 2D linear system with matrices", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}, {"name": "Tamsin Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/14108/"}, {"name": "Fraser Buxton", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/24224/"}, {"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}], "tags": [], "metadata": {"description": "

Putting a pair of linear equations into matrix notation and then solving by finding the inverse of the coefficient matrix. 

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

Solve the set of simultaneous equations using matrices:

", "advice": "", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-5..5 )", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b1": {"name": "b1", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c1": {"name": "c1", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "", "templateType": "anything", "can_override": false}, "det": {"name": "det", "group": "Ungrouped variables", "definition": "a*b1 - b*a1", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "det<>0", "maxRuns": 100}, "ungrouped_variables": ["a", "c", "b", "a1", "b1", "c1", "det"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Write the following set of equations as a matrix equation:

$$
\\begin{eqnarray*} \\simplify[std]{{a}x+{b}y}&=&\\var{c}\\\\ \\simplify[std]{{a1}x+{b1}y}&=&\\var{c1} \\end{eqnarray*}
$$

\n

That is, in the form:

\n

$$
\\boldsymbol{A}v=b
$$

\n

for some matrix $\\boldsymbol{A}$ and column vectors $v$ and $b$.

\n


[[0]]$
\\begin{pmatrix}
x \\\\
y \\\\
\\end{pmatrix} = \\ $[[1]] 

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "correctAnswer": "matrix([\n [a,b],\n [a1,b1]\n])", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": "", "gridlines": "none", "gridlinesCustomRows": "repeat(false, numrows-1)", "gridlinesCustomColumns": "repeat(false, numcolumns-1)"}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "correctAnswer": "matrix([\n [c],\n [c1]\n])", "correctAnswerFractions": true, "numRows": "2", "numColumns": 1, "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": true, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": "", "gridlines": "none", "gridlinesCustomRows": "repeat(false, numrows-1)", "gridlinesCustomColumns": "repeat(false, numcolumns-1)"}], "sortAnswers": false, "inlineCorrectAnswer": true}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Find the inverse of $\\boldsymbol{A}$, the $2 \\times 2$ matrix you defined in the previous question

\n

Input all numbers as fractions or integers and not as decimals. Simplify your fractions as much as possible!

\n

$\\boldsymbol{A}^{-1} = $ [[0]]

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "correctAnswer": "matrix([\n [b1,-b],\n [-a1,a]\n])/det", "correctAnswerFractions": true, "numRows": "2", "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": true, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": "", "gridlines": "none", "gridlinesCustomRows": "repeat(false, numrows-1)", "gridlinesCustomColumns": "repeat(false, numcolumns-1)"}], "sortAnswers": false, "inlineCorrectAnswer": true}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Using matrix multiplication and your answer to part $b)$, find $\\boldsymbol{A}^{-1}b$

\n

Give your answer as fractions or integers and not as decimals.

\n

$\\boldsymbol{A}^{-1}b = $ [[0]]

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": "1.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "correctAnswer": "matrix([{c*b1-c1*b}/{b1*a-a1*b}],[{-c*a1+c1*a}/{b1*a-a1*b}])", "correctAnswerFractions": true, "numRows": "2", "numColumns": 1, "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": true, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": "", "gridlines": "none", "gridlinesCustomRows": "repeat(false, numrows-1)", "gridlinesCustomColumns": "repeat(false, numcolumns-1)"}], "sortAnswers": false, "inlineCorrectAnswer": true}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Using your answer to part $c)$, state the values of $x$ and $y$.

\n

Give your answer as fractions or integers and not as decimals.

\n

$x = $ [[0]]

\n

$y = $ [[1]]

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 0.5, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "answer": "{c*b1-c1*b}/{b1*a-a1*b}", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "notation": "standard", "notallowed": {"strings": ["."], "showStrings": false, "partialCredit": 0, "message": "

Input as a fraction or an integer, not as a decimal

"}, "valuegenerators": [], "functionsets": [], "enabledfunctions": [], "disabledfunctions": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 0.5, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "answer": "{-c*a1+c1*a}/{b1*a-a1*b}", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "notation": "standard", "notallowed": {"strings": ["."], "showStrings": false, "partialCredit": 0, "message": "

Input as a fraction or an integer, not as a decimal

"}, "valuegenerators": [], "functionsets": [], "enabledfunctions": [], "disabledfunctions": []}], "sortAnswers": false, "inlineCorrectAnswer": true}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "typeendtoleave": false, "startpassword": "", "autoSubmit": true, "allowAttemptDownload": false, "downloadEncryptionKey": "", "showresultspage": "oncompletion"}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"enterreviewmodeimmediately": true, "showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview", "allowrevealanswer": true, "intro": "", "end_message": "", "results_options": {"printquestions": true, "printadvice": true}, "feedbackmessages": [], "reviewshowexpectedanswer": true, "showanswerstate": true, "reviewshowfeedback": true, "showactualmark": true, "showtotalmark": true, "reviewshowscore": true, "reviewshowadvice": true}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Will Roberts", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/32402/"}], "extensions": [], "custom_part_types": [], "resources": [["question-resources/matrix_add.gif", "/srv/numbas-editor/media/question-resources/675fa2406c54df06a68e75e3e2a803e0ca0ae8a14b8addc7ad671fd4bcc9eb0f.gif"]]}