// Numbas version: exam_results_page_options {"name": "Maria'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": [{"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.

\n

b)      Remember that the elements are in the form $A_{\\rm \\color{red}{ rows},\\color{blue}{columns}}$ where $A$ is the matrix.

\n

For 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

", "parts": [{"unitTests": [], "customName": "", "marks": 0, "gaps": [{"unitTests": [], "customName": "", "marks": 1, "minValue": "{n1}", "variableReplacements": [], "showCorrectAnswer": true, "showFractionHint": true, "showFeedbackIcon": true, "type": "numberentry", "maxValue": "{n1}", "customMarkingAlgorithm": "", "allowFractions": false, "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "useCustomName": false, "correctAnswerFraction": false}, {"unitTests": [], "customName": "", "marks": 1, "minValue": "{m1}", "variableReplacements": [], "showCorrectAnswer": true, "showFractionHint": true, "showFeedbackIcon": true, "type": "numberentry", "maxValue": "{m1}", "customMarkingAlgorithm": "", "allowFractions": false, "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "useCustomName": false, "correctAnswerFraction": false}, {"unitTests": [], "customName": "", "marks": 1, "minValue": "{n2}", "variableReplacements": [], "showCorrectAnswer": true, "showFractionHint": true, "showFeedbackIcon": true, "type": "numberentry", "maxValue": "{n2}", "customMarkingAlgorithm": "", "allowFractions": false, "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "useCustomName": false, "correctAnswerFraction": false}, {"unitTests": [], "customName": "", "marks": 1, "minValue": "{m2}", "variableReplacements": [], "showCorrectAnswer": true, "showFractionHint": true, "showFeedbackIcon": true, "type": "numberentry", "maxValue": "{m2}", "customMarkingAlgorithm": "", "allowFractions": false, "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "useCustomName": false, "correctAnswerFraction": false}, {"unitTests": [], "customName": "", "marks": 1, "minValue": "{n3}", "variableReplacements": [], "showCorrectAnswer": true, "showFractionHint": true, "showFeedbackIcon": true, "type": "numberentry", "maxValue": "{n3}", "customMarkingAlgorithm": "", "allowFractions": false, "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "useCustomName": false, "correctAnswerFraction": false}, {"unitTests": [], "customName": "", "marks": 1, "minValue": "{m3}", "variableReplacements": [], "showCorrectAnswer": true, "showFractionHint": true, "showFeedbackIcon": true, "type": "numberentry", "maxValue": "{m3}", "customMarkingAlgorithm": "", "allowFractions": false, "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "useCustomName": false, "correctAnswerFraction": false}], "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

Give the dimensions of the following matrices:

\n

Matrix $A$ is a [[0]]$ \\times $[[1]] matrix

\n

Matrix $B$ is a [[2]]$ \\times$[[3]] matrix

\n

Matrix $C$ is a [[4]]$ \\times$[[5]] matrix

", "sortAnswers": false, "showFeedbackIcon": true, "type": "gapfill", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "useCustomName": false}, {"unitTests": [], "customName": "", "marks": 0, "gaps": [{"unitTests": [], "customName": "", "marks": 1, "minValue": "A[n1-1][m1-1]", "variableReplacements": [], "showCorrectAnswer": true, "showFractionHint": true, "showFeedbackIcon": true, "type": "numberentry", "maxValue": "A[n1-1][m1-1]", "customMarkingAlgorithm": "", "allowFractions": false, "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "useCustomName": false, "correctAnswerFraction": false}, {"unitTests": [], "customName": "", "marks": 1, "minValue": "b[n2-1][m2-1]", "variableReplacements": [], "showCorrectAnswer": true, "showFractionHint": true, "showFeedbackIcon": true, "type": "numberentry", "maxValue": "b[n2-1][m2-1]", "customMarkingAlgorithm": "", "allowFractions": false, "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "useCustomName": false, "correctAnswerFraction": false}, {"unitTests": [], "customName": "", "marks": 1, "minValue": "c[n3-1][m3-1]", "variableReplacements": [], "showCorrectAnswer": true, "showFractionHint": true, "showFeedbackIcon": true, "type": "numberentry", "maxValue": "c[n3-1][m3-1]", "customMarkingAlgorithm": "", "allowFractions": false, "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "useCustomName": false, "correctAnswerFraction": false}, {"unitTests": [], "customName": "", "marks": 1, "minValue": "c[n4-1][m4-1]", "variableReplacements": [], "showCorrectAnswer": true, "showFractionHint": true, "showFeedbackIcon": true, "type": "numberentry", "maxValue": "c[n4-1][m4-1]", "customMarkingAlgorithm": "", "allowFractions": false, "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "useCustomName": false, "correctAnswerFraction": false}], "variableReplacements": [], "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]]

", "sortAnswers": false, "showFeedbackIcon": true, "type": "gapfill", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "useCustomName": false}, {"unitTests": [], "customName": "", "marks": 0, "gaps": [{"unitTests": [], "customName": "", "correctAnswerFractions": false, "allowResize": true, "marks": 1, "correctAnswer": "D+F", "variableReplacements": [], "showCorrectAnswer": true, "numColumns": "3", "showFeedbackIcon": true, "type": "matrix", "markPerCell": false, "customMarkingAlgorithm": "", "numRows": "3", "allowFractions": false, "extendBaseMarkingAlgorithm": true, "tolerance": 0, "variableReplacementStrategy": "originalfirst", "scripts": {}, "useCustomName": false}, {"unitTests": [], "customName": "", "correctAnswerFractions": false, "allowResize": true, "marks": 1, "correctAnswer": "D-F", "variableReplacements": [], "showCorrectAnswer": true, "numColumns": "3", "showFeedbackIcon": true, "type": "matrix", "markPerCell": false, "customMarkingAlgorithm": "", "numRows": "3", "allowFractions": false, "extendBaseMarkingAlgorithm": true, "tolerance": 0, "variableReplacementStrategy": "originalfirst", "scripts": {}, "useCustomName": false}, {"unitTests": [], "customName": "", "correctAnswerFractions": false, "allowResize": true, "marks": 1, "correctAnswer": "scalar1*C", "variableReplacements": [], "showCorrectAnswer": true, "numColumns": "3", "showFeedbackIcon": true, "type": "matrix", "markPerCell": false, "customMarkingAlgorithm": "", "numRows": "3", "allowFractions": false, "extendBaseMarkingAlgorithm": true, "tolerance": 0, "variableReplacementStrategy": "originalfirst", "scripts": {}, "useCustomName": false}, {"unitTests": [], "customName": "", "correctAnswerFractions": false, "allowResize": true, "marks": 1, "correctAnswer": "scalar2*B", "variableReplacements": [], "showCorrectAnswer": true, "numColumns": "3", "showFeedbackIcon": true, "type": "matrix", "markPerCell": false, "customMarkingAlgorithm": "", "numRows": "3", "allowFractions": false, "extendBaseMarkingAlgorithm": true, "tolerance": 0, "variableReplacementStrategy": "originalfirst", "scripts": {}, "useCustomName": false}, {"unitTests": [], "customName": "", "correctAnswerFractions": false, "allowResize": true, "marks": 1, "correctAnswer": "scalar1*D+scalar3*F", "variableReplacements": [], "showCorrectAnswer": true, "numColumns": "3", "showFeedbackIcon": true, "type": "matrix", "markPerCell": false, "customMarkingAlgorithm": "", "numRows": "3", "allowFractions": false, "extendBaseMarkingAlgorithm": true, "tolerance": 0, "variableReplacementStrategy": "originalfirst", "scripts": {}, "useCustomName": false}], "variableReplacements": [], "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

", "sortAnswers": false, "showFeedbackIcon": true, "type": "gapfill", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "useCustomName": false}], "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"}], "ungrouped_variables": [], "rulesets": {}, "name": "Maria's copy of Matrices 1", "extensions": [], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "functions": {}, "variables": {"scalar1": {"definition": "random(-6..9 except 0..1)", "templateType": "anything", "group": "Addition/Scalar", "description": "", "name": "scalar1"}, "m3": {"definition": "random(2..4)", "templateType": "anything", "group": "C", "description": "", "name": "m3"}, "n3": {"definition": "random(2..4)", "templateType": "anything", "group": "C", "description": "", "name": "n3"}, "m2": {"definition": "3", "templateType": "anything", "group": "B", "description": "", "name": "m2"}, "scalar3": {"definition": "random(-6..9 except 0..1)", "templateType": "anything", "group": "Addition/Scalar", "description": "", "name": "scalar3"}, "ans1": {"definition": "scalar1*C", "templateType": "anything", "group": "Addition/Scalar", "description": "", "name": "ans1"}, "A": {"definition": "transpose(matrix(repeat(repeat(random(-9..9),n1),m1)))", "templateType": "anything", "group": "A", "description": "", "name": "A"}, "ans2": {"definition": "scalar2*B", "templateType": "anything", "group": "Addition/Scalar", "description": "", "name": "ans2"}, "m1": {"definition": "random(1..2)", "templateType": "anything", "group": "A", "description": "", "name": "m1"}, "F": {"definition": "transpose(matrix(repeat(repeat(random(-9..9),2),3)))", "templateType": "anything", "group": "Addition/Scalar", "description": "", "name": "F"}, "n4": {"definition": "random(1..(n3-1) except n3)", "templateType": "anything", "group": "C2", "description": "", "name": "n4"}, "B": {"definition": "transpose(matrix(repeat(repeat(random(-9..9),n2),m2)))", "templateType": "anything", "group": "B", "description": "", "name": "B"}, "n1": {"definition": "random(1..2)", "templateType": "anything", "group": "A", "description": "", "name": "n1"}, "D": {"definition": "transpose(matrix(repeat(repeat(random(-9..9),2),3)))", "templateType": "anything", "group": "Addition/Scalar", "description": "", "name": "D"}, "n2": {"definition": "3", "templateType": "anything", "group": "B", "description": "", "name": "n2"}, "scalar2": {"definition": "random(-6..9 except 0..1)", "templateType": "anything", "group": "Addition/Scalar", "description": "

scalar

", "name": "scalar2"}, "C": {"definition": "transpose(matrix(repeat(repeat(random(-9..9),n3),m3)))", "templateType": "anything", "group": "C", "description": "", "name": "C"}, "ans3": {"definition": "scalar1*D + scalar3*F", "templateType": "anything", "group": "Addition/Scalar", "description": "", "name": "ans3"}, "m4": {"definition": "random(1..(m3-1) except m3)", "templateType": "anything", "group": "C2", "description": "", "name": "m4"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "

Throughout these questions:

\n

Matrix $A=\\var{A}$,

\n

Matrix $B=\\var{B}$,

\n

Matrix $C=\\var{C}$,

\n

Matrix $D=\\var{D}$,

\n

and Matrix $E=\\var{F}$

", "preamble": {"css": "", "js": ""}, "contributors": [{"name": "Mark Hodds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Mark Hodds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}