// Numbas version: exam_results_page_options {"name": "L1 - Matrices intro and definitions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": [], "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

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

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

", "showFeedbackIcon": true, "variableReplacements": []}, {"adaptiveMarkingPenalty": 0, "showCellAnswerState": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 0, "distractors": ["", "", ""], "maxMarks": 0, "unitTests": [], "customMarkingAlgorithm": "", "choices": ["

$\\mathrm{rows} \\times \\mathrm{columns}$

", "

$\\mathrm{columns} \\times \\mathrm{rows}$

", "

Neither of the above.

"], "customName": "", "shuffleChoices": false, "useCustomName": false, "showFeedbackIcon": true, "displayColumns": "1", "type": "1_n_2", "displayType": "radiogroup", "extendBaseMarkingAlgorithm": true, "matrix": ["1", 0, 0], "showCorrectAnswer": true, "minMarks": 0, "prompt": "

If a matrix is described as being $p \\times q$ then the order is

", "variableReplacements": []}, {"adaptiveMarkingPenalty": 0, "showCellAnswerState": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 0, "warningType": "none", "unitTests": [], "showFeedbackIcon": true, "choices": ["$i$", "$j$"], "minAnswers": 0, "customName": "", "shuffleChoices": false, "customMarkingAlgorithm": "", "useCustomName": false, "type": "m_n_x", "displayType": "radiogroup", "extendBaseMarkingAlgorithm": true, "answers": ["Columns", "Rows", "Rows or columns interchangeably"], "maxAnswers": 0, "layout": {"type": "all", "expression": ""}, "matrix": [[0, "0.5", 0], ["0.5", 0, 0]], "showCorrectAnswer": true, "shuffleAnswers": false, "minMarks": 0, "maxMarks": 0, "prompt": "

If a matrix $A$ is described as having elements $a_{ij}$ then the variables on the left can be described as follows:

", "variableReplacements": []}], "rulesets": {}, "variables": {"n3": {"description": "", "templateType": "anything", "name": "n3", "definition": "random(2..4)", "group": "C"}, "n2": {"description": "", "templateType": "anything", "name": "n2", "definition": "random(2..4)", "group": "B"}, "m4": {"description": "", "templateType": "anything", "name": "m4", "definition": "random(1..(m3-1) except m3)", "group": "C2"}, "C": {"description": "", "templateType": "anything", "name": "C", "definition": "transpose(matrix(repeat(repeat(random(-9..9),n3),m3)))", "group": "C"}, "m1": {"description": "", "templateType": "anything", "name": "m1", "definition": "random(1..2)", "group": "A"}, "m2": {"description": "", "templateType": "anything", "name": "m2", "definition": "random(2..4)", "group": "B"}, "B": {"description": "", "templateType": "anything", "name": "B", "definition": "transpose(matrix(repeat(repeat(random(-9..9),n2),m2)))", "group": "B"}, "n4": {"description": "", "templateType": "anything", "name": "n4", "definition": "random(1..(n3-1) except n3)", "group": "C2"}, "n1": {"description": "", "templateType": "anything", "name": "n1", "definition": "random(1..2)", "group": "A"}, "A": {"description": "", "templateType": "anything", "name": "A", "definition": "transpose(matrix(repeat(repeat(random(-9..9),n1),m1)))", "group": "A"}, "m3": {"description": "", "templateType": "anything", "name": "m3", "definition": "random(2..4)", "group": "C"}}, "name": "L1 - Matrices intro and definitions", "tags": [], "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}$

\n

The 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.

\n

A 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).

\n

When 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$.

", "metadata": {"description": "

aij  notation and definition of the order of a matrix.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "preamble": {"css": "", "js": ""}, "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"}], "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}, {"name": "Timur Zaripov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3272/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}, {"name": "Timur Zaripov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3272/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}