// Numbas version: exam_results_page_options {"name": "Jessica'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": [{"functions": {}, "ungrouped_variables": ["a", "c", "b", "d", "s3", "s2", "s1", "td", "tc"], "name": "Jessica's copy of Solving equations", "tags": ["equations", "linear equation", "Solving equations", "solving equations", "solving linear equations"], "advice": "

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

\n

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

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

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

\n

$y\\;=$[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "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}, "variableReplacements": [], "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "vsetrangepoints": 5, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "{d-b}/{a-c}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

Solve the following linear equation for $y$.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"a": {"definition": "s1*random(2..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "if(a=tc,tc+1,tc)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "s2*random(1..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "if(b=td,td+1,td)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "s3": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s3", "description": ""}, "s2": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s2", "description": ""}, "s1": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s1", "description": ""}, "td": {"definition": "random(1..20)", "templateType": "anything", "group": "Ungrouped variables", "name": "td", "description": ""}, "tc": {"definition": "s3*random(2..20)", "templateType": "anything", "group": "Ungrouped variables", "name": "tc", "description": ""}}, "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 ay + b = cy + d$ for $y$.

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