// Numbas version: finer_feedback_settings {"name": "Alex's copy of Simon's copy of Lois's copy of 1.1 Introduction to Matrices", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": [], "name": "Alex's copy of Simon's copy of Lois's copy of 1.1 Introduction to Matrices", "tags": [], "preamble": {"css": "", "js": ""}, "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", "rulesets": {}, "parts": [{"prompt": "Example 1 -- Give the dimensions of the following matrices:
\n$A=\\var{A}$ has dimensions [[0]]$ \\times $[[1]]
\n$B=\\var{B}$ is a [[2]]$ \\times$[[3]] matrix
\n$C=\\var{C}$ is of dimension [[4]]$ \\times$[[5]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{n1}", "minValue": "{n1}", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{m1}", "minValue": "{m1}", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{n2}", "minValue": "{n2}", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{m2}", "minValue": "{m2}", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{n3}", "minValue": "{n3}", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{m3}", "minValue": "{m3}", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "Example 2 -- Give the values of the following elements of the matrices from example 1 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]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "A[n1-1][m1-1]", "minValue": "A[n1-1][m1-1]", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "b[n2-1][m2-1]", "minValue": "b[n2-1][m2-1]", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "c[n3-1][m3-1]", "minValue": "c[n3-1][m3-1]", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}, {"allowFractions": false, "variableReplacements": [], "maxValue": "c[n4-1][m4-1]", "minValue": "c[n4-1][m4-1]", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "Matrices are rectangular arrays of numbers arranged in rows and columns. For example
\n$\\begin{pmatrix} 1&2\\\\ 4&5\\\\ \\end{pmatrix} , \\begin{pmatrix} 0&-1\\ &3\\\\2&4&-2 \\end{pmatrix}$
\nThe rows run across the matrices while the columns run down the matrices. Thus in the first matrix above the numbers $\\begin{pmatrix}1&2\\end{pmatrix}$ are in the first row while the numbers $\\begin{pmatrix}4&5\\end{pmatrix}$ are in the second row and similarly the numbers $\\begin{pmatrix} 1\\\\ 4\\\\ \\end{pmatrix}$ are in the first column while the numbers $\\begin{pmatrix} 2\\\\ 5\\\\ \\end{pmatrix}$ are in the second column.
\nA matrix with $\\bf m$ rows and $\\bf n$ columns is called a matrix of order $\\bf m\\times n$ or dimension $\\bf m\\times n$ (or an $\\bf m\\times n$ matrix for brevity).
\nWhen working with matrices the positions of the numbers in the arrays are as important as the actual values of the numbers. Given a matrix called $A$ the number in row $i$ and column $j$ is usually denoted $a_{ij}$ it is also sometimes called the $ij^{th}$ element of the matrix $A$.
", "variable_groups": [{"variables": ["n1", "m1", "A"], "name": "A"}, {"variables": ["n2", "m2", "B"], "name": "B"}, {"variables": ["n3", "m3", "C"], "name": "C"}, {"variables": ["n4", "m4"], "name": "C2"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"A": {"definition": "transpose(matrix(repeat(repeat(random(-9..9),n1),m1)))", "templateType": "anything", "group": "A", "name": "A", "description": ""}, "C": {"definition": "transpose(matrix(repeat(repeat(random(-9..9),n3),m3)))", "templateType": "anything", "group": "C", "name": "C", "description": ""}, "B": {"definition": "transpose(matrix(repeat(repeat(random(-9..9),n2),m2)))", "templateType": "anything", "group": "B", "name": "B", "description": ""}, "m4": {"definition": "random(1..(m3-1) except m3)", "templateType": "anything", "group": "C2", "name": "m4", "description": ""}, "m1": {"definition": "random(1..2)", "templateType": "anything", "group": "A", "name": "m1", "description": ""}, "m3": {"definition": "random(2..4)", "templateType": "anything", "group": "C", "name": "m3", "description": ""}, "m2": {"definition": "random(2..4)", "templateType": "anything", "group": "B", "name": "m2", "description": ""}, "n1": {"definition": "random(1..2)", "templateType": "anything", "group": "A", "name": "n1", "description": ""}, "n2": {"definition": "random(2..4)", "templateType": "anything", "group": "B", "name": "n2", "description": ""}, "n3": {"definition": "random(2..4)", "templateType": "anything", "group": "C", "name": "n3", "description": ""}, "n4": {"definition": "random(1..(n3-1) except n3)", "templateType": "anything", "group": "C2", "name": "n4", "description": ""}}, "metadata": {"description": "aij notation and definition of the order of a matrix.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "contributors": [{"name": "Alex Van den Hof", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1273/"}]}]}], "contributors": [{"name": "Alex Van den Hof", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1273/"}]}