// Numbas version: finer_feedback_settings {"name": "Blathnaid's copy of Matrices 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"ans2": {"templateType": "anything", "description": "", "name": "ans2", "definition": "scalar2*B", "group": "Addition/Scalar"}, "D": {"templateType": "anything", "description": "", "name": "D", "definition": "transpose(matrix(repeat(repeat(random(-9..9),2),3)))", "group": "Addition/Scalar"}, "m2": {"templateType": "anything", "description": "", "name": "m2", "definition": "3", "group": "B"}, "m1": {"templateType": "anything", "description": "", "name": "m1", "definition": "random(1..2)", "group": "A"}, "m3": {"templateType": "anything", "description": "", "name": "m3", "definition": "random(2..4)", "group": "C"}, "B": {"templateType": "anything", "description": "", "name": "B", "definition": "transpose(matrix(repeat(repeat(random(-9..9),n2),m2)))", "group": "B"}, "n3": {"templateType": "anything", "description": "", "name": "n3", "definition": "random(2..4)", "group": "C"}, "m4": {"templateType": "anything", "description": "", "name": "m4", "definition": "random(1..(m3-1) except m3)", "group": "C2"}, "scalar3": {"templateType": "anything", "description": "", "name": "scalar3", "definition": "random(-6..9 except 0..1)", "group": "Addition/Scalar"}, "n2": {"templateType": "anything", "description": "", "name": "n2", "definition": "3", "group": "B"}, "C": {"templateType": "anything", "description": "", "name": "C", "definition": "transpose(matrix(repeat(repeat(random(-9..9),n3),m3)))", "group": "C"}, "n4": {"templateType": "anything", "description": "", "name": "n4", "definition": "random(1..(n3-1) except n3)", "group": "C2"}, "ans1": {"templateType": "anything", "description": "", "name": "ans1", "definition": "scalar1*C", "group": "Addition/Scalar"}, "scalar1": {"templateType": "anything", "description": "", "name": "scalar1", "definition": "random(-6..9 except 0..1)", "group": "Addition/Scalar"}, "n1": {"templateType": "anything", "description": "", "name": "n1", "definition": "random(1..2)", "group": "A"}, "ans3": {"templateType": "anything", "description": "", "name": "ans3", "definition": "scalar1*D + scalar3*F", "group": "Addition/Scalar"}, "A": {"templateType": "anything", "description": "", "name": "A", "definition": "transpose(matrix(repeat(repeat(random(-9..9),n1),m1)))", "group": "A"}, "F": {"templateType": "anything", "description": "", "name": "F", "definition": "transpose(matrix(repeat(repeat(random(-9..9),2),3)))", "group": "Addition/Scalar"}, "scalar2": {"templateType": "anything", "description": "
scalar
", "name": "scalar2", "definition": "random(-6..9 except 0..1)", "group": "Addition/Scalar"}}, "parts": [{"scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "gaps": [{"notationStyles": ["plain", "en", "si-en"], "minValue": "{n1}", "mustBeReducedPC": 0, "allowFractions": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "mustBeReduced": false, "unitTests": [], "type": "numberentry", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "maxValue": "{n1}", "marks": 1, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "correctAnswerFraction": false}, {"notationStyles": ["plain", "en", "si-en"], "minValue": "{m1}", "mustBeReducedPC": 0, "allowFractions": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "mustBeReduced": false, "unitTests": [], "type": "numberentry", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "maxValue": "{m1}", "marks": 1, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "correctAnswerFraction": false}, {"notationStyles": ["plain", "en", "si-en"], "minValue": "{n2}", "mustBeReducedPC": 0, "allowFractions": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "mustBeReduced": false, "unitTests": [], "type": "numberentry", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "maxValue": "{n2}", "marks": 1, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "correctAnswerFraction": false}, {"notationStyles": ["plain", "en", "si-en"], "minValue": "{m2}", "mustBeReducedPC": 0, "allowFractions": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "mustBeReduced": false, "unitTests": [], "type": "numberentry", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "maxValue": "{m2}", "marks": 1, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "correctAnswerFraction": false}, {"notationStyles": ["plain", "en", "si-en"], "minValue": "{n3}", "mustBeReducedPC": 0, "allowFractions": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "mustBeReduced": false, "unitTests": [], "type": "numberentry", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "maxValue": "{n3}", "marks": 1, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "correctAnswerFraction": false}, {"notationStyles": ["plain", "en", "si-en"], "minValue": "{m3}", "mustBeReducedPC": 0, "allowFractions": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "mustBeReduced": false, "unitTests": [], "type": "numberentry", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "maxValue": "{m3}", "marks": 1, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "correctAnswerFraction": false}], "unitTests": [], "type": "gapfill", "showCorrectAnswer": true, "prompt": "Give the dimensions of the following matrices:
\nMatrix $A$ is a [[0]]$ \\times $[[1]] matrix
\nMatrix $B$ is a [[2]]$ \\times$[[3]] matrix
\nMatrix $C$ is a [[4]]$ \\times$[[5]] matrix
", "customMarkingAlgorithm": "", "marks": 0, "variableReplacementStrategy": "originalfirst", "sortAnswers": false}, {"scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "gaps": [{"notationStyles": ["plain", "en", "si-en"], "minValue": "A[n1-1][m1-1]", "mustBeReducedPC": 0, "allowFractions": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "mustBeReduced": false, "unitTests": [], "type": "numberentry", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "maxValue": "A[n1-1][m1-1]", "marks": 1, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "correctAnswerFraction": false}, {"notationStyles": ["plain", "en", "si-en"], "minValue": "b[n2-1][m2-1]", "mustBeReducedPC": 0, "allowFractions": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "mustBeReduced": false, "unitTests": [], "type": "numberentry", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "maxValue": "b[n2-1][m2-1]", "marks": 1, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "correctAnswerFraction": false}, {"notationStyles": ["plain", "en", "si-en"], "minValue": "c[n3-1][m3-1]", "mustBeReducedPC": 0, "allowFractions": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "mustBeReduced": false, "unitTests": [], "type": "numberentry", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "maxValue": "c[n3-1][m3-1]", "marks": 1, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "correctAnswerFraction": false}, {"notationStyles": ["plain", "en", "si-en"], "minValue": "c[n4-1][m4-1]", "mustBeReducedPC": 0, "allowFractions": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "mustBeReduced": false, "unitTests": [], "type": "numberentry", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "maxValue": "c[n4-1][m4-1]", "marks": 1, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "correctAnswerFraction": false}], "unitTests": [], "type": "gapfill", "showCorrectAnswer": true, "prompt": "Give the values of the following elements of the matrices from above:
\n$a_{\\var{n1}\\var{m1}}=$[[0]]
\n$b_{\\var{n2}\\var{m2}}=$[[1]]
\n$c_{\\var{n3}\\var{m3}}=$[[2]]
\n$c_{\\var{n4}\\var{m4}}=$[[3]]
", "customMarkingAlgorithm": "", "marks": 0, "variableReplacementStrategy": "originalfirst", "sortAnswers": false}, {"scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "gaps": [{"allowFractions": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "correctAnswerFractions": false, "unitTests": [], "type": "matrix", "showCorrectAnswer": true, "allowResize": true, "tolerance": 0, "markPerCell": false, "customMarkingAlgorithm": "", "numColumns": "3", "marks": 1, "variableReplacementStrategy": "originalfirst", "numRows": "3", "correctAnswer": "D+F"}, {"allowFractions": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "correctAnswerFractions": false, "unitTests": [], "type": "matrix", "showCorrectAnswer": true, "allowResize": true, "tolerance": 0, "markPerCell": false, "customMarkingAlgorithm": "", "numColumns": "3", "marks": 1, "variableReplacementStrategy": "originalfirst", "numRows": "3", "correctAnswer": "D-F"}, {"allowFractions": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "correctAnswerFractions": false, "unitTests": [], "type": "matrix", "showCorrectAnswer": true, "allowResize": true, "tolerance": 0, "markPerCell": false, "customMarkingAlgorithm": "", "numColumns": "3", "marks": 1, "variableReplacementStrategy": "originalfirst", "numRows": "3", "correctAnswer": "scalar1*C"}, {"allowFractions": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "correctAnswerFractions": false, "unitTests": [], "type": "matrix", "showCorrectAnswer": true, "allowResize": true, "tolerance": 0, "markPerCell": false, "customMarkingAlgorithm": "", "numColumns": "3", "marks": 1, "variableReplacementStrategy": "originalfirst", "numRows": "3", "correctAnswer": "scalar2*B"}, {"allowFractions": false, "scripts": {}, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showFeedbackIcon": true, "correctAnswerFractions": false, "unitTests": [], "type": "matrix", "showCorrectAnswer": true, "allowResize": true, "tolerance": 0, "markPerCell": false, "customMarkingAlgorithm": "", "numColumns": "3", "marks": 1, "variableReplacementStrategy": "originalfirst", "numRows": "3", "correctAnswer": "scalar1*D+scalar3*F"}], "unitTests": [], "type": "gapfill", "showCorrectAnswer": true, "prompt": "In these questions, you need to change the size of the matrix where necessary
\n$D + E =$ [[0]]
\n$D - E =$ [[1]]
\n$\\var{scalar1}C =$ [[2]]
\n$\\var{scalar2}B =$ [[3]]
\n$\\var{scalar1}D + \\var{scalar3}E =$ [[4]]
\n", "customMarkingAlgorithm": "", "marks": 0, "variableReplacementStrategy": "originalfirst", "sortAnswers": false}], "statement": "Throughout these questions:
\nMatrix $A=\\var{A}$,
\nMatrix $B=\\var{B}$,
\nMatrix $C=\\var{C}$,
\nMatrix $D=\\var{D}$,
\nand Matrix $E=\\var{F}$
", "functions": {}, "extensions": [], "tags": [], "ungrouped_variables": [], "rulesets": {}, "advice": "a) Remember that the dimensions are $\\rm \\color{red}{rows} \\times \\color{blue}{columns}$, so you need to count the number or rwos and columns in the matrix and wrtite them in that order.
\nb) Remember that the elements are in the form $A_{\\rm \\color{red}{ rows},\\color{blue}{columns}}$ where $A$ is the matrix.
\nFor example if we are looking for $a_{12}$ we look at the matrix $A= \\begin{pmatrix} \\var{a11} &\\bf( \\underline{\\var{a12}}) \\\\ \\var{a21} & \\var{a22}\\end{pmatrix}$ we want the the element on $\\rm \\color{red}{row ~ 1}$ and $\\rm \\color{blue}{column ~ 2}$ which in this case is $\\bf \\underline{\\var{a12}}$
\n", "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [{"variables": ["A", "n1", "m1"], "name": "A"}, {"variables": ["n2", "m2", "B"], "name": "B"}, {"variables": ["n3", "m3", "C"], "name": "C"}, {"variables": ["n4", "m4"], "name": "C2"}, {"variables": ["scalar1", "scalar2", "scalar3", "ans1", "ans2", "D", "F", "ans3"], "name": "Addition/Scalar"}], "name": "Blathnaid's copy of Matrices 1", "preamble": {"js": "", "css": ""}, "type": "question", "contributors": [{"name": "Blathnaid Sheridan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/447/"}, {"name": "Mark Hodds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/"}]}]}], "contributors": [{"name": "Blathnaid Sheridan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/447/"}, {"name": "Mark Hodds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/"}]}