// Numbas version: exam_results_page_options {"name": "Gareth's copy of Gareth's copy of Gareth's copy of Denis's copy of Simultaneous equations (2)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a", "c", "b", "a1", "b1", "c1"], "preamble": {"js": "", "css": ""}, "functions": {}, "parts": [{"gaps": [{"type": "jme", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrangepoints": 5, "variableReplacements": [], "marks": 1, "variableReplacementStrategy": "originalfirst", "vsetrange": [0, 1], "answer": "{b1*c-b*c1}/{a*b1-a1*b}", "notallowed": {"partialCredit": 0, "showStrings": false, "message": "

Input your answer as a fraction and not a decimal.

", "strings": ["."]}, "showpreview": true, "checkingaccuracy": 0.001, "answersimplification": "Std", "showCorrectAnswer": true, "expectedvariablenames": [], "scripts": {}}, {"type": "jme", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrangepoints": 5, "variableReplacements": [], "marks": 1, "variableReplacementStrategy": "originalfirst", "vsetrange": [0, 1], "answer": "{-c*a1+c1*a}/{a*b1-a1*b}", "notallowed": {"partialCredit": 0, "showStrings": false, "message": "

Input your answer as a fraction and not as a decimal.

", "strings": ["."]}, "showpreview": true, "checkingaccuracy": 0.001, "answersimplification": "Std", "showCorrectAnswer": true, "expectedvariablenames": [], "scripts": {}}], "type": "gapfill", "scripts": {}, "variableReplacements": [], "marks": 0, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "prompt": "

$x=$ [[0]]

\n

$y=$ [[1]]

\n

input your answers as fractions in the form a/b and not as decimals.

"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "advice": "

Multiply the first equation by $\\var{b1}$ and the second equation by $\\var{b}$ so they both have the same $y$ coefficient:

\n

\\begin{align}
\\simplify{{a*b1}x+{b*b1}y} &= \\var{c*b1} \\\\
\\simplify{{a1*b}x+{b1*b}y} &= \\var{c1*b}
\\end{align}

\n

Next, subtract the second equation from the first to get

\n

\\[ \\simplify[std]{{a*b1-a1*b}x} = \\var{c*b1-c1*b} \\]

\n

So $x = \\simplify[std]{{(c*b1-c1*b)/(a*b1-a1*b)}}$.

\n

Substitute this value of $x$ into the first equation and rearrange to obtain $y$:

\n

\\begin{align}
\\simplify[std]{{a}*{(c*b1-c1*b)/(a*b1-a1*b)} + {b}y} &= \\var{c} \\\\
\\simplify[std]{{b}y} &= \\simplify[std]{{c}-{a*(c*b1-c1*b)/(a*b1-a1*b)}} \\\\
y &= \\simplify[std]{{(c-a*(c*b1-c1*b)/(a*b1-a1*b))/b}}
\\end{align}

", "rulesets": {"std": ["All", "fractionnumbers"]}, "statement": "

Solve the following pair of simultaneous equations:

\n

\\[\\begin{eqnarray*} \\simplify{{a}x+{b}y}&=&\\var{c}\\\\\\\\\\simplify{{a1}x+{b1}y}&=&\\var{c1}\\end{eqnarray*}\\]

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

Shows how to define variables to stop degenerate examples.

", "licence": "Creative Commons Attribution 4.0 International"}, "extensions": [], "name": "Gareth's copy of Gareth's copy of Gareth's copy of Denis's copy of Simultaneous equations (2)", "variable_groups": [], "tags": [], "variables": {"b1": {"name": "b1", "description": "", "definition": "random(1..9 except round(a1*b/a))", "group": "Ungrouped variables", "templateType": "anything"}, "c": {"name": "c", "description": "", "definition": "random(1..9)", "group": "Ungrouped variables", "templateType": "anything"}, "a1": {"name": "a1", "description": "", "definition": "random(1..9)", "group": "Ungrouped variables", "templateType": "anything"}, "c1": {"name": "c1", "description": "", "definition": "random(1..5)", "group": "Ungrouped variables", "templateType": "anything"}, "b": {"name": "b", "description": "", "definition": "random(-9..9 except [0,a])", "group": "Ungrouped variables", "templateType": "anything"}, "a": {"name": "a", "description": "", "definition": "random(1..9)", "group": "Ungrouped variables", "templateType": "anything"}}, "type": "question", "contributors": [{"name": "Gareth Woods", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/978/"}]}]}], "contributors": [{"name": "Gareth Woods", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/978/"}]}