// Numbas version: exam_results_page_options {"name": "Lois's copy of Simultaneous linear equations (variables)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "c", "b", "a1", "b1", "c1"], "name": "Lois's copy of Simultaneous linear equations (variables)", "tags": ["Defining variables", "Except", "linear equations", "Linear equations", "simultaneous equations", "Simultaneous equations", "solving equations", "Solving equations"], "preamble": {"css": "", "js": ""}, "advice": "

A general method is to make the coefficients of either $x$ or $y$ equal by multiplying one or both equations by a constant.

\n

You can then add or subtract the resulting equations to get an equation in just $x$ or $y$, which you can solve.

\n

The value of the other variable can be found by substitution into one of the original equations.

\n

See the following link for more explanation and some worked examples:

\n

http://www.mathcentre.ac.uk/resources/uploaded/mc-bus-simult-2009-1.pdf.

\n

\n

", "rulesets": {"std": ["All", "fractionnumbers"]}, "parts": [{"prompt": "

$x=$ [[0]]

\n

$y=$ [[1]]

\n

Input your answers as fractions (use the '/' key) and not as decimals.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"notallowed": {"message": "

Input your answer as a fraction and not a decimal.

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

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

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

Solve:

\n

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

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(1..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(1..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(-5..5 except [0,1,-1, a])", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "a1": {"definition": "random(1..5 except a)", "templateType": "anything", "group": "Ungrouped variables", "name": "a1", "description": ""}, "b1": {"definition": "random(2..6 except[round(a1*b/a), -b, b])", "templateType": "anything", "group": "Ungrouped variables", "name": "b1", "description": ""}, "c1": {"definition": "random(1..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "c1", "description": ""}}, "metadata": {"description": "

Shows how to define variables to stop degenerate examples.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}]}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}