// Numbas version: finer_feedback_settings {"name": "Simplify an algebraic expression", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b", "c", "d", "f"], "name": "Simplify an algebraic expression", "tags": ["rebelmaths"], "preamble": {"css": "", "js": ""}, "advice": "

$\\var{a}+\\var{b}(x-\\var{c}y)-\\var{d}(y-\\var{f})$

\n

First multiply out the brackets

\n

$=\\var{a}+\\var{b}x+(\\var{b}\\times(-\\var{c}))y-\\var{d}y-(\\var{d}\\times(-\\var{f}))$

\n

Next, group numbers only terms, $x$ only terms and $y$ only terms.ar

\n

$=\\var{p}+\\var{b}x-\\var{q}y$

", "rulesets": {}, "parts": [{"prompt": "

[[0]]$+$[[1]]$x-$[[2]]$y$

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "{p}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "{b}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "{q}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

Remove the brackets and simplify  $\\var{a}+\\var{b}(x-\\var{c}y)-\\var{d}(y-\\var{f})$.

", "variable_groups": [{"variables": ["p", "q"], "name": "Unnamed group"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(2..6)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(2..4)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(2..4)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(2..4)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "f": {"definition": "random(2..6)", "templateType": "anything", "group": "Ungrouped variables", "name": "f", "description": ""}, "q": {"definition": "b*c+d", "templateType": "anything", "group": "Unnamed group", "name": "q", "description": ""}, "p": {"definition": "a+d*f", "templateType": "anything", "group": "Unnamed group", "name": "p", "description": ""}}, "metadata": {"description": "

Expand out brackets to simplify an algebraic expression.

\n

rebelmaths

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