// Numbas version: finer_feedback_settings {"name": "SIT190 - Module 2 - Self-assessment", "metadata": {"description": "

SIT190 - Module 2 - Quiz

", "licence": "None specified"}, "duration": 5400, "percentPass": "80", "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Week 2 - Quiz", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", ""], "variable_overrides": [[], [], []], "questions": [{"name": "2.1 Solving linear simultaneous equations by elimination", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Lauren Richards", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1589/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}, {"name": "Simon James", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18202/"}], "tags": [], "metadata": {"description": "

This question tests the student's ability to solve simple linear equations by elimination. Part a) involves only having to manipulate one equation in order to solve, and part b) involves having to manipulate both equations in order to solve. 

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "

a)

\n

\\begin{align}
\\var{h}x+\\var{k}y&=\\var{m}\\text{,}\\\\
\\var{j}x-\\var{l}y&=\\var{n}\\text{.}\\\\
\\end{align}

\n

To find the solution to these equations, we need to cancel one of the unknowns.

\n

Notice that $\\var{h}x$ in the first equation can be multiplied by $\\var{j/h}$ to match $\\var{j}x$ in the second equation. This means that we will only have to manipulate the first equation and can leave the second equation as it is.

\n

We have to multiply the entire first equation by $\\var{j/h}$, not just the $x$ term to ensure the equation still holds. 

\n

$\\var{h}x+\\var{k}y=\\var{m}$ multiplied by $\\var{j/h}$ gives $\\var{j}x+\\var{k*(j/h)}y=\\var{m*(j/h)}.$

\n

We now have a common $x$ term and we can cancel this by subtracting one equation from the other to find the $y$ term. 

\n

\\begin{align}
&&\\var{j}x+\\var{k*{j/h}}y&=\\var{m*(j/h)}\\\\
-&&\\var{j}x-\\var{l}y&=\\var{n}\\\\
&&\\overline{\\qquad} & \\overline{\\qquad}\\\\
&&0x+\\var{k*(j/h)+l}y&=\\var{m*(j/h)-n}\\\\[1em]
&&y&=\\frac{\\var{m*j/h-n}}{\\var{k*j/h+l}}\\\\
&&y&=\\var{y1}
\\end{align}

\n

We can find the corresponding value of $x$ by substituting this value for $y$ back into either of the original equations.

\n

\\begin{align}
\\var{h}x+(\\var{k}\\times\\var{y1})&=\\var{m}\\text{,}\\\\
\\var{h}x+\\var{k*y1}&=\\var{m}\\text{,}\\\\
\\var{h}x&=\\var{m-(k*y1)}\\text{,}\\\\
x&=\\var{x1}\\text{.}\\\\
\\end{align}

\n

Therefore, $x=\\var{x1}$ and $y=\\var{y1}$.

\n

b)

\n

\\begin{align}
\\var{a}x+\\var{b}y&=\\var{c}\\text{,}\\\\
\\var{d}x+\\var{f}y&=\\var{g}\\text{.}\\\\
\\end{align}

\n

To be able to solve the equations, we need to cancel one of the unknowns by manipulating the two equations so that the variable we wish to cancel is of the same value in each equation.

\n

Although we can choose to cancel either variable, $x$ or $y$, a good rule of thumb is to look at the lowest common multiples of the coefficients for each variable and cancel the variable with the lowest LCM.

\n

The LCM of the coefficients of the $x$ terms is $\\var{lcm(a,d)}$.

\n

The LCM of the coefficients of the $y$ terms is $\\var{lcm(b,f)}$.

\n

Therefore, we will choose to cancel the $x$ terms.

\n

We need to multiply the equations individually to achieve the lowest common multiple identified. 

\n

\\begin{align}
\\simplify{ {a}x + {b}y } &= \\var{c} &\\text{multiply by } \\var{lcm(a,d)/a} \\text { to obtain } && \\simplify{ {lcm(a,d)}x + {b*lcm(a,d)/a}y} &= \\var{c*lcm(a,d)/a} \\\\
\\simplify{ {d}x + {f}y } &= \\var{g} &\\text{multiply by } \\var{lcm(a,d)/d} \\text { to obtain } && \\simplify{ {lcm(a,d)}x + {b*lcm(a,d)/d}y} &= \\var{c*lcm(a,d)/d}
\\end{align}

\n

\n

We now have a common $x$ term, and can cancel this by subtracting one equation from the other.

\n

\\begin{align}
&& \\simplify{ {lcm(a,d)}x+{b*lcm(a,d)/a}y } = \\var{c*lcm(a,d)/a} \\\\
- && \\simplify{ {lcm(a,d)}x + {f*lcm(a,d)/d}y } = \\var{g*lcm(a,d)/d} \\\\
&& \\overline{\\simplify[]{ 0x+{b*lcm(a,d)/a-f*lcm(a,d)/d}y} = \\var{c*lcm(a,d)/a-g*lcm(a,d)/d}}
\\end{align}

\n

\\begin{align}
\\var{(b*lcm(a,d)/a)-(f*lcm(a,d)/d)}y &= \\var{(c*lcm(a,d)/a)-(g*lcm(a,d)/d)}\\text{,}\\\\
y &= \\var{y2}\\text{.}
\\end{align}

\n

We can find the corresponding value of $x$ by substituting thsi value of $y$ value back into either of the original equations.

\n

\\begin{align}
\\simplify[]{ {a}x + {b}{y2}} &= \\var{c} \\\\
\\simplify[]{ {a}x + {b*y2}} &= \\var{c} \\\\
\\var{a}x&=\\var{c-b*y2} \\\\
x &= \\var{x2} \\text{.}
\\end{align}

\n

Therefore, $x=\\var{x2}$ and $y=\\var{y2}$.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"c": {"name": "c", "group": "Part b", "definition": "a*x2+b*y2", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Part b", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "numerator": {"name": "numerator", "group": "part a", "definition": "m*(j/h)-n", "description": "", "templateType": "anything", "can_override": false}, "l": {"name": "l", "group": "part a", "definition": "random(1..6)", "description": "

Constant part of the LHS of the second equation in part a

", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "part a", "definition": "j*x1 + l*y1", "description": "

RHS of the second equation in part a

", "templateType": "anything", "can_override": false}, "g": {"name": "g", "group": "Part b", "definition": "d*x2+f*y2", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "part a", "definition": "h*x1 + k*y1", "description": "

RHS of the first equation in part a

", "templateType": "anything", "can_override": false}, "divisor": {"name": "divisor", "group": "part a", "definition": "k*(j/h)+l", "description": "", "templateType": "anything", "can_override": false}, "y1": {"name": "y1", "group": "part a", "definition": "random(-5..-1)*sgn(x1)", "description": "

Value of $x$ in part a

", "templateType": "anything", "can_override": false}, "y2": {"name": "y2", "group": "Part b", "definition": "random(-5..-1)*sgn(x2)", "description": "

Value of $y$ in part b

", "templateType": "anything", "can_override": false}, "x2": {"name": "x2", "group": "Part b", "definition": "random(-5..5)", "description": "

Value of $x$ in part b

", "templateType": "anything", "can_override": false}, "x1": {"name": "x1", "group": "part a", "definition": "random(-5..5 except 0)", "description": "

Value of $x$ in part a

", "templateType": "anything", "can_override": false}, "k": {"name": "k", "group": "part a", "definition": "random(1..6)", "description": "

Constant part of the LHS of the first equation in part a

", "templateType": "anything", "can_override": false}, "j": {"name": "j", "group": "part a", "definition": "h*random(2..3)", "description": "

$x$ coefficient of the second equation in part a. An integer multiple of the $x$ coefficient of the second equation.

", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Part b", "definition": "random(a+1..7)", "description": "

Coefficient of $y$ in the first equation of part b.

\n

", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Part b", "definition": "random(max(a,b)+1..12 except map(j*b,j,0..10/b))", "description": "

$y$ coefficient of the second equation in part b. Never an integer multiple of the $y$ coefficient in the first equation.

", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "part a", "definition": "random(2..5)", "description": "

$x$ coefficient of the first equation in part a

", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Part b", "definition": "random(a+1..9 except map(j*a,j,0..10/a))", "description": "

$x$ coefficient in the second equation of part b. Never an integer multiple of the $x$ coefficient in the first equation.

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "lcm(a,d)Solve this set of simultaneous equations and give your answers for $x$ and $y$ below (\"None\" if there is no solution, \"Any\" if infinitely many solutions).

\n

\\begin{align}
\\simplify{{h}x+{k}y} &= \\var{m} \\text{,} \\\\
\\simplify{{j}x+{l}y} &= \\var{n} \\text{.}
\\end{align}

\n

$x =$ [[0]]

\n

$y =$ [[1]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "x1", "maxValue": "x1", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "y1", "maxValue": "y1", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Solve this set of simultaneous equations and give your answers for $x$ and $y$ below (\"None\" if there is no solution, \"Any\" if infinitely many solutions).

\n

\\begin{align}
\\simplify{{a}x + {b}y} &= \\var{c} \\text{,} \\\\
\\simplify{{d}x + {f}y} &= \\var{g} \\text{.}
\\end{align}

\n

$x =$ [[0]]

\n

$y =$ [[1]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "x2", "maxValue": "x2", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "y2", "maxValue": "y2", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Solve this set of simultaneous equations and give your answers for $x$ and $y$ below (\"None\" if there is no solution, \"Any\" if infinitely many solutions).

\n

\\begin{align}
\\simplify{{a}x + {b}y} &= \\var{c} \\text{,} \\\\
\\simplify{(2*{a})x + (2*{b})y} &= \\var{2c} \\text{.}
\\end{align}

\n

$x =$ [[0]]

\n

$y =$ [[1]]

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "any", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "any", "partialCredit": 0, "message": "", "nameToCompare": "", "warningTime": "submission"}, "valuegenerators": [{"name": "any", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "any", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "any", "partialCredit": 0, "message": "", "nameToCompare": "", "warningTime": "submission"}, "valuegenerators": [{"name": "any", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Solve this set of simultaneous equations and give your answers for $x$ and $y$ below (\"None\" if there is no solution, \"Any\" if infinitely many solutions).

\n

\\begin{align}
\\simplify{{2a}x + {2b}y} &= \\var{c+2} \\text{,} \\\\
\\simplify{{(2a+3)a}x + (({2a+3})*{b})y} &= \\var{c+10} \\text{.}
\\end{align}

\n

$x =$ [[0]]

\n

$y =$ [[1]]

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "none", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "none", "partialCredit": 0, "message": "", "nameToCompare": "", "warningTime": "submission"}, "valuegenerators": [{"name": "none", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "none", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "none", "partialCredit": 0, "message": "", "nameToCompare": "", "warningTime": "submission"}, "valuegenerators": [{"name": "none", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "2.2 Simple equation line and gradient", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Luke Park", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/826/"}, {"name": "Anna Strzelecka", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2945/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}, {"name": "Simon James", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18202/"}], "tags": [], "metadata": {"description": "

A question to practice equation line and finding gradients

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Equations of line in the form $y=mx+c$ and $ax + by = c$

", "advice": "

Click 'Try another question like this one' if you need more practice.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"m2": {"name": "m2", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-20..20)", "description": "", "templateType": "anything", "can_override": false}, "c2": {"name": "c2", "group": "Ungrouped variables", "definition": "random(-20..20)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}, "cc": {"name": "cc", "group": "Ungrouped variables", "definition": "random(-20..20 except 0)", "description": "", "templateType": "anything", "can_override": false}, "ak": {"name": "ak", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "", "templateType": "anything", "can_override": false}, "ck": {"name": "ck", "group": "Ungrouped variables", "definition": "random(1..6)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["m", "c", "m2", "c2", "a", "b", "cc", "ak", "ck"], "variable_groups": [], "functions": {"": {"parameters": [], "type": "number", "language": "jme", "definition": ""}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Find the gradient of the line defined by \\begin{align}
y &= \\simplify {{m2}x+{c2}} \\text{.}
\\end{align}

", "minValue": "m2", "maxValue": "m2", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Identify the $x$ and $y$ intercepts for \\begin{align}
y &= \\simplify {{m}x+{c}} \\text{.}
\\end{align}

\n

$x$ intercept =[[0]]

\n

$y$ intercept =[[1]]

\n

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "-c/m", "maxValue": "-c/m", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "c", "maxValue": "c", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Given the line in the form \\begin{align}
\\simplify {{ak}{b}x+{b}y = {ck}{b}} \\text{.}
\\end{align}

\n

a) Convert it to $y = mx+c.$

\n

[[0]]

\n

b) Identify the gradient

\n

[[1]]

\n

c) Identify the $x$ and $y$ intercepts

\n

$x$ intercept = [[2]]

\n

$y$ intercept = [[3]]

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "y = {-ak} x+ {ck}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}]}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "-ak", "maxValue": "-ak", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "ck/ak", "maxValue": "ck/ak", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "ck", "maxValue": "ck", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Find the gradient of the line defined by \\begin{align}
y &= \\simplify {{c2}} \\text{.}
\\end{align}

", "minValue": "0", "maxValue": "0", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Find the gradient of the line defined by \\begin{align}
x &= \\simplify {{m2}} \\text{.}
\\end{align}

\n

[[0]]

", "gaps": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showBlankOption": true, "showCellAnswerState": true, "choices": ["0", "1", "Infinity"], "matrix": [0, 0, "1"], "distractors": ["", "", ""]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "2.3 Matrices", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Timur Zaripov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3272/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}, {"name": "Simon James", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18202/"}], "tags": [], "metadata": {"description": "

Multiplication and adding matrices.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "

To add matrices, just add corresponding elements together.

\n

a)

\n

\\begin{align}
\\mathbf{AB} &= \\var{A}\\var{B} \\\\
&= \\begin{pmatrix} \\simplify[]{ {a[0][0]}*{b[0][0]}+{a[0][1]}*{b[1][0]} } & \\simplify[]{ {a[0][0]}*{b[0][1]} + {a[0][1]}*{b[1][1]} } \\\\ \\simplify[]{ {a[1][0]}*{b[0][0]} + {a[1][1]}*{b[1][0]} } & \\simplify[]{ {a[1][0]}*{b[0][1]} + {a[1][1]}*{b[1][1]} } \\end{pmatrix} \\\\
&= \\var{a*b}
\\end{align}

\n

b)

\n

\\begin{align}
\\mathbf{BA} &= \\var{B}\\var{A} \\\\
&= \\begin{pmatrix} \\simplify[]{ {b[0][0]}*{a[0][0]}+{b[0][1]}*{a[1][0]} } & \\simplify[]{ {b[0][0]}*{a[0][1]} + {b[0][1]}*{a[1][1]} } \\\\ \\simplify[]{ {b[1][0]}*{a[0][0]} + {b[1][1]}*{a[1][0]} } & \\simplify[]{ {b[1][0]}*{a[0][1]} + {b[1][1]}*{a[1][1]} } \\end{pmatrix} \\\\
&= \\var{b*a}
\\end{align}

\n

c)

\n

\\begin{align}
\\mathbf{CB} &= \\var{C}\\var{B} \\\\
&= \\begin{pmatrix} \\simplify[]{ {c[0][0]}*{b[0][0]}+{c[0][1]}*{b[1][0]} } & \\simplify[]{ {c[0][0]}*{b[0][1]} + {c[0][1]}*{b[1][1]} } \\\\ \\simplify[]{ {c[1][0]}*{b[0][0]} + {c[1][1]}*{b[1][0]} } & \\simplify[]{ {c[1][0]}*{b[0][1]} + {c[1][1]}*{b[1][1]} } \\end{pmatrix} \\\\
&= \\var{c*b}
\\end{align}

\n

d)

\n

\\begin{align}
\\mathbf{AC} &= \\var{A}\\var{C} \\\\
&= \\begin{pmatrix} \\simplify[]{ {a[0][0]}*{c[0][0]}+{a[0][1]}*{c[1][0]} } & \\simplify[]{ {a[0][0]}*{c[0][1]} + {a[0][1]}*{c[1][1]} } \\\\ \\simplify[]{ {a[1][0]}*{c[0][0]} + {a[1][1]}*{c[1][0]} } & \\simplify[]{ {a[1][0]}*{c[0][1]} + {a[1][1]}*{c[1][1]} } \\end{pmatrix} \\\\
&= \\var{a*c}
\\end{align}

", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers"]}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"c": {"name": "c", "group": "Ungrouped variables", "definition": "matrix([ [random(1,0,4), a[0][1]+b[0][1]], [random(2..5),random(0,1)] ])", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "matrix([ [random(-2,1,2),random(1..4)], [random(-2..2),random(1..3)] ])", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "matrix([ [random(-3,-1,0,3),random(-3..1)], [random(2,3),random(-3..-1)] ])", "description": "", "templateType": "anything", "can_override": false}, "a1": {"name": "a1", "group": "Ungrouped variables", "definition": "matrix([ [random(-3,0,3),random(-2,1,2),random(1..4)], [random(-2..2),random(1..3),random(-2..0)] ])", "description": "", "templateType": "anything", "can_override": false}, "c1": {"name": "c1", "group": "Ungrouped variables", "definition": "matrix([ [random(-3,0,3),random(-2,1,2),random(1..4)], [random(-2..2),random(1..3),random(-2..0)] ])", "description": "", "templateType": "anything", "can_override": false}, "b1": {"name": "b1", "group": "Ungrouped variables", "definition": "matrix([ [random(-3,0,3),random(-2,1,2)],[random(1..4), random(-2..2)],[random(1..3),random(-2..0)] ])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "a1", "c1", "b1"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Given matrices $A = \\var{A1}, B=\\var{B1}, C=\\var{C1}$:

\n

   1) Identify pairs that can be added:[[0]]

\n

   2) Identify pairs that cannot be multiplied:[[1]]

", "gaps": [{"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "choices": ["A and A", "A and B", "A and C", "B and C"], "matrix": ["1", 0, "1", 0], "distractors": ["", "", "", ""]}, {"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "choices": ["A x B", "A x C", "C x B", "B x C", "C x A", "B x A"], "matrix": ["0", "1", 0, 0, "1", 0], "distractors": ["", "", "", "", "", ""]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Given matrices $\\mathbf{A}$ and $\\mathbf{B}$ choose the correct matrix size and calculate:

\n

1) $\\mathbf{A+B} = \\var{A1}+\\var{C1} = $  [[0]]

\n

2) $\\mathbf{A \\times B} = \\var{A1}\\var{B1} = $   [[1]]

\n

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "correctAnswer": "a1+c1", "correctAnswerFractions": false, "numRows": "1", "numColumns": "1", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "correctAnswer": "a1*b1", "correctAnswerFractions": false, "numRows": "1", "numColumns": "1", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "allowPrinting": true, "navigation": {"allowregen": false, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "typeendtoleave": false, "startpassword": "", "autoSubmit": true, "allowAttemptDownload": false, "downloadEncryptionKey": "", "showresultspage": "oncompletion"}, "timing": {"allowPause": false, "timeout": {"action": "warn", "message": "

Time has run out.

"}, "timedwarning": {"action": "warn", "message": "

5 minutes before time runs out.

"}}, "feedback": {"enterreviewmodeimmediately": true, "showactualmarkwhen": "inreview", "showtotalmarkwhen": "inreview", "showanswerstatewhen": "inreview", "showpartfeedbackmessageswhen": "inreview", "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview", "allowrevealanswer": false, "intro": "

Instructions:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
1. Complete the questions within 90 minutes and achieve 80% or higher.
2. You can take this self-assessment as many times as you need, until you receive a satisfactory grade (you don't need to achieve 80% when you 'give it a go' the first time)
3. Use the \"Print this results summary\" and save as a pdf after you complete your attempt.  You will need the printout showing all questions for your module submission.
", "end_message": "", "results_options": {"printquestions": true, "printadvice": true}, "feedbackmessages": [{"message": "

Congratulations! You have achieved the minimum threshold for this module's self-assessment.

\n

Use the \"Print this results summary\" and save your attempt as a pdf.  You will need the printout showing all questions for your module submission.

", "threshold": "80"}, {"message": "

Unfortunately you have not achieved the minimum score.

\n

If this is your first 'Give it a go' attempt - don't despair! This is exactly why we take our first attempt - to see how we're going and whether we need more practice in order to complete the quest.

\n

You should still use the \"Print this results summary\" option to save a copy of your results as a pdf, which will help with your learning and can also be shared with your tutors so they can help with certain questions.

\n
If you have tried this test several times and have not been able to pass, then it is strongly advised that you attend class to go over your results with the teaching team. You can attempt the quiz while in class, and discuss your results with the tutors. Do not attempt to try to solve this quiz on your own without understanding your mistakes first. You will likely end up spending far more time than necessary on the module.
", "threshold": 0}], "reviewshowexpectedanswer": true, "showanswerstate": false, "reviewshowfeedback": true, "showactualmark": false, "showtotalmark": false, "reviewshowscore": true, "reviewshowadvice": true}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}, {"name": "Simon James", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18202/"}], "extensions": [], "custom_part_types": [], "resources": []}