// Numbas version: finer_feedback_settings {"name": "Ch10 Q1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Ch10 Q1", "ungrouped_variables": [], "metadata": {"description": "
aij notation and definition of the order of a matrix.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "preamble": {"js": "", "css": ""}, "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", "variables": {"A": {"name": "A", "definition": "transpose(matrix(repeat(repeat(random(-9..9),n1),m1)))", "templateType": "anything", "group": "A", "description": ""}, "n2": {"name": "n2", "definition": "random(2..4)", "templateType": "anything", "group": "B", "description": ""}, "m2": {"name": "m2", "definition": "random(2..4)", "templateType": "anything", "group": "B", "description": ""}, "m4": {"name": "m4", "definition": "random(1..(m3-1) except m3)", "templateType": "anything", "group": "C2", "description": ""}, "B": {"name": "B", "definition": "transpose(matrix(repeat(repeat(random(-9..9),n2),m2)))", "templateType": "anything", "group": "B", "description": ""}, "n4": {"name": "n4", "definition": "random(1..(n3-1) except n3)", "templateType": "anything", "group": "C2", "description": ""}, "m3": {"name": "m3", "definition": "random(2..4)", "templateType": "anything", "group": "C", "description": ""}, "n3": {"name": "n3", "definition": "random(2..4)", "templateType": "anything", "group": "C", "description": ""}, "m1": {"name": "m1", "definition": "random(1..2)", "templateType": "anything", "group": "A", "description": ""}, "C": {"name": "C", "definition": "transpose(matrix(repeat(repeat(random(-9..9),n3),m3)))", "templateType": "anything", "group": "C", "description": ""}, "n1": {"name": "n1", "definition": "random(1..2)", "templateType": "anything", "group": "A", "description": ""}}, "extensions": [], "variable_groups": [{"name": "A", "variables": ["n1", "m1", "A"]}, {"name": "B", "variables": ["n2", "m2", "B"]}, {"name": "C", "variables": ["n3", "m3", "C"]}, {"name": "C2", "variables": ["n4", "m4"]}], "functions": {}, "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$.
", "tags": [], "variablesTest": {"condition": "", "maxRuns": 100}, "rulesets": {}, "parts": [{"variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "gapfill", "gaps": [{"variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "numberentry", "allowFractions": false, "correctAnswerFraction": false, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "maxValue": "{n1}", "correctAnswerStyle": "plain", "minValue": "{n1}", "showCorrectAnswer": true}, {"variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "numberentry", "allowFractions": false, "correctAnswerFraction": false, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "maxValue": "{m1}", "correctAnswerStyle": "plain", "minValue": "{m1}", "showCorrectAnswer": true}, {"variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "numberentry", "allowFractions": false, "correctAnswerFraction": false, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "maxValue": "{n2}", "correctAnswerStyle": "plain", "minValue": "{n2}", "showCorrectAnswer": true}, {"variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "numberentry", "allowFractions": false, "correctAnswerFraction": false, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "maxValue": "{m2}", "correctAnswerStyle": "plain", "minValue": "{m2}", "showCorrectAnswer": true}, {"variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "numberentry", "allowFractions": false, "correctAnswerFraction": false, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "maxValue": "{n3}", "correctAnswerStyle": "plain", "minValue": "{n3}", "showCorrectAnswer": true}, {"variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "numberentry", "allowFractions": false, "correctAnswerFraction": false, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "maxValue": "{m3}", "correctAnswerStyle": "plain", "minValue": "{m3}", "showCorrectAnswer": true}], "marks": 0, "scripts": {}, "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]]
", "showCorrectAnswer": true}, {"variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "gapfill", "gaps": [{"variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "numberentry", "allowFractions": false, "correctAnswerFraction": false, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "maxValue": "A[n1-1][m1-1]", "correctAnswerStyle": "plain", "minValue": "A[n1-1][m1-1]", "showCorrectAnswer": true}, {"variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "numberentry", "allowFractions": false, "correctAnswerFraction": false, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "maxValue": "b[n2-1][m2-1]", "correctAnswerStyle": "plain", "minValue": "b[n2-1][m2-1]", "showCorrectAnswer": true}, {"variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "numberentry", "allowFractions": false, "correctAnswerFraction": false, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "maxValue": "c[n3-1][m3-1]", "correctAnswerStyle": "plain", "minValue": "c[n3-1][m3-1]", "showCorrectAnswer": true}, {"variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "numberentry", "allowFractions": false, "correctAnswerFraction": false, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "maxValue": "c[n4-1][m4-1]", "correctAnswerStyle": "plain", "minValue": "c[n4-1][m4-1]", "showCorrectAnswer": true}], "marks": 0, "scripts": {}, "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]]
", "showCorrectAnswer": true}], "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/"}]}