// Numbas version: exam_results_page_options {"name": "Maria's copy of Solving equations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "name": "Maria's copy of Solving equations", "statement": "

Solve the following simultaneous equations for $x$ and $y$. Input your answers as fractions or integers, not as decimals.

", "preamble": {"css": "", "js": ""}, "functions": {}, "question_groups": [{"pickQuestions": 0, "name": "", "questions": [], "pickingStrategy": "all-ordered"}], "variables": {"sb": {"definition": "random(1,-1)", "templateType": "anything", "name": "sb", "group": "Ungrouped variables", "description": ""}, "sa": {"definition": "random(1,-1)", "templateType": "anything", "name": "sa", "group": "Ungrouped variables", "description": ""}, "b2": {"definition": "random(2..9)", "templateType": "anything", "name": "b2", "group": "Ungrouped variables", "description": ""}, "a": {"definition": "sa*random(2..9)", "templateType": "anything", "name": "a", "group": "Ungrouped variables", "description": ""}, "fromorto": {"definition": "if(b*b1>0,'from','to')", "templateType": "anything", "name": "fromorto", "group": "Ungrouped variables", "description": ""}, "c1": {"definition": "sc1*random(1..9)", "templateType": "anything", "name": "c1", "group": "Ungrouped variables", "description": ""}, "s1": {"definition": "random(1,-1)", "templateType": "anything", "name": "s1", "group": "Ungrouped variables", "description": ""}, "b": {"definition": "sb*random(1..9)", "templateType": "anything", "name": "b", "group": "Ungrouped variables", "description": ""}, "that": {"definition": "lcm(abs(b),abs(b1))/abs(b1)", "templateType": "anything", "name": "that", "group": "Ungrouped variables", "description": ""}, "a1": {"definition": "switch(a2=2,random(3,5,7,9),a2=3,random(2,4,5,7),a2=4,random(3,5,7,9),a2=5,random(3,4,6,7,9),a2=6,random(4,5,7,8,9),a2=7,random(3,4,5,6,8,9),a2=8,random(3,5,6,7,9),a2=9,random(2,4,5,7,8),9)", "templateType": "anything", "name": "a1", "group": "Ungrouped variables", "description": ""}, "sc": {"definition": "random(1,-1)", "templateType": "anything", "name": "sc", "group": "Ungrouped variables", "description": ""}, "s6": {"definition": "if(b*b1>0,-1,1)", "templateType": "anything", "name": "s6", "group": "Ungrouped variables", "description": ""}, "a2": {"definition": "abs(a)", "templateType": "anything", "name": "a2", "group": "Ungrouped variables", "description": ""}, "c": {"definition": "sc*random(1..9)", "templateType": "anything", "name": "c", "group": "Ungrouped variables", "description": ""}, "sc1": {"definition": "random(1,-1)", "templateType": "anything", "name": "sc1", "group": "Ungrouped variables", "description": ""}, "this": {"definition": "lcm(abs(b),abs(b1))/abs(b)", "templateType": "anything", "name": "this", "group": "Ungrouped variables", "description": ""}, "b1": {"definition": "if(a*b2=a1*b,b2+1,b2)", "templateType": "anything", "name": "b1", "group": "Ungrouped variables", "description": ""}, "aort": {"definition": "if(b*b1>0,'take away the equation','add the equation')", "templateType": "anything", "name": "aort", "group": "Ungrouped variables", "description": ""}}, "tags": ["checked2015", "equations", "linear", "mas1601", "MAS1601", "pair of linear equations", "simultaneous", "simultaneous linear equations", "solve linear equations", "solving equations", "Solving equations"], "metadata": {"description": "

Solve for $x$ and $y$:  \\[ \\begin{eqnarray} a_1x+b_1y&=&c_1\\\\   a_2x+b_2y&=&c_2 \\end{eqnarray} \\]

", "notes": "

5/08/2012:

\n

Added more tags.

\n

Added description.

\n

Checked calculation. OK.

", "licence": "Creative Commons Attribution 4.0 International"}, "variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"marks": 0, "scripts": {}, "showCorrectAnswer": true, "type": "gapfill", "prompt": "

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

\n

$x=\\phantom{{}}$[[0]], $y=\\phantom{{}}$[[1]]

\n

Input your answers as fractions or integers, not as decimals.

", "gaps": [{"marks": 1, "notallowed": {"partialCredit": 0, "strings": ["."], "message": "

Input as a fraction or an integer not as a decimal

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

Input as a fraction or an integer not as a decimal

", "showStrings": false}, "expectedvariablenames": [], "showCorrectAnswer": true, "checkingtype": "absdiff", "answersimplification": "std", "checkvariablenames": false, "vsetrangepoints": 5, "showpreview": true, "scripts": {}, "checkingaccuracy": 0.001, "type": "jme", "vsetrange": [0, 1], "answer": "{c*a1-a*c1}/{b*a1-a*b1}"}]}], "type": "question", "advice": "

\\[ \\begin{eqnarray} \\simplify[std]{{a}x+{b}y}&=&\\var{c}&\\mbox{ ........(1)}\\\\ \\simplify[std]{{a1}x+{b1}y}&=&\\var{c1}&\\mbox{ ........(2)} \\end{eqnarray} \\]
To get a solution for $x$ multiply equation (1) by {this} and equation (2) by {that}

\n

This gives:
\\[ \\begin{eqnarray} \\simplify[std]{{a*this}x+{b*this}y}&=&\\var{this*c}&\\mbox{ ........(3)}\\\\ \\simplify[std]{{a1*that}x+{b1*that}y}&=&\\var{that*c1}&\\mbox{ ........(4)} \\end{eqnarray} \\]
Now {aort} (4) {fromorto} equation (3) to get
\\[\\simplify[std]{({a*this}+{s6*a1*that})x={this*c}+{s6*that*c1}}\\]
And so we get the solution for $x$:
\\[x = \\simplify{{c*b1-b*c1}/{b1*a-a1*b}}\\]
Substituting this value into any of the equations (1) and (2) gives:
\\[y = \\simplify{{c*a1-a*c1}/{b*a1-a*b1}}\\]
You can check that these solutions are correct by seeing if they satisfy both equations (1) and (2) by substituting these values into the equations.

", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "showQuestionGroupNames": false, "ungrouped_variables": ["a", "c", "b", "that", "this", "sc1", "s1", "s6", "a1", "aort", "a2", "b1", "b2", "sc", "sb", "sa", "fromorto", "c1"], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}