// Numbas version: exam_results_page_options {"name": "Solving equations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "name": "Solving equations", "tags": ["equations", "linear equation", "solving equations", "solving linear equations"], "advice": "\n

Given the equation \\[\\simplify[std]{{a}x+{b}={c}x+{d}}\\] we first collect together all the constant terms, and collect together all the terms in $x$.

\n

The equation can then be written as:
\\[\\simplify[std]{({a}-{c})x=({d}+{-b})}\\] i.e.
\\[\\simplify{{a-c}x={d-b}}\\]
which gives \\[x =\\simplify[std]{{(d-b)}/{(a-c)}}\\] as the solution.

\n ", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers"]}, "parts": [{"prompt": "\n

\\[\\simplify[std]{{a} * x + {b} = {c} * x + {d}}\\]
Input your answer as a fraction or an integer. Do NOT input the answer as a decimal.

\n

$x\\;=$[[0]]

\n ", "gaps": [{"notallowed": {"message": "

Input your answer as a fraction or an integer. Do not input the answer as a decimal. 

", "showstrings": false, "strings": ["."], "partialcredit": 0.0}, "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "all", "marks": 1.0, "answer": "{d-b}/{a-c}", "type": "jme"}], "type": "gapfill", "marks": 0.0}], "extensions": [], "statement": "

Solve the following linear equation for $x$.

", "variable_groups": [], "progress": "ready", "type": "question", "variables": {"a": {"definition": "s1*random(2..12)", "name": "a"}, "c": {"definition": "if(a=tc,tc+1,tc)", "name": "c"}, "b": {"definition": "s2*random(1..12)", "name": "b"}, "d": {"definition": "if(b=td,td+1,td)", "name": "d"}, "s3": {"definition": "random(1,-1)", "name": "s3"}, "s2": {"definition": "random(1,-1)", "name": "s2"}, "s1": {"definition": "random(1,-1)", "name": "s1"}, "td": {"definition": "random(1..20)", "name": "td"}, "tc": {"definition": "s3*random(2..20)", "name": "tc"}}, "metadata": {"notes": "\n \t\t

5/08/2012:

\n \t\t

Added more tags.

\n \t\t

Added description.

\n \t\t

Checked calculation. OK.

\n \t\t", "description": "

Solve $\\displaystyle ax + b = cx + d$ for $x$.

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