// Numbas version: exam_results_page_options {"name": "Simplify Expression", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "name": "Simplify Expression", "tags": ["algebra", "algebraic manipulation", "simplification", "simplify an expression"], "advice": "\n

\\[\\begin{eqnarray*}f(x,y)&=&\\simplify[std]{{a}({b}x+{c}y)+{a1}x+{b1}y+{a2}({b2}x+{c2}y)}\\\\&=&\\simplify[std]{{a*b}x+{a*c}y+{a1}x+{b1}y+{a2*b2}x+{a2*c2}y}\\\\&=&\\simplify[std]{{a*b}x+{a1}x+{a2*b2}x+{a*c}y+{b1}y+{a2*c2}y}\\\\&=&\\simplify[std]{({a*b}+{a1}+{a2*b2})x+({a*c}+{b1}+{a2*c2})y}\\\\&=&\\simplify[std]{{a*b+a1+a2*b2}x+{a*c+b1+a2*c2}y}\\end{eqnarray*}\\]

\n

 

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

Simplify  $f(x,y)=\\simplify[std]{{a}({b}x+{c}y)+{a1}x+{b1}y+{a2}({b2}x+{c2}y)}$

\n

$f(x,y)=\\;$[[0]]

\n

Do not include brackets in your answer.

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

Do not include brackets in your answer. Collect together all $x$ and $y$ terms and input your answer in the form $ax+by$ for suitable values of $a$ and $b$.

", "showstrings": false, "strings": ["("], "partialcredit": 0.0}, "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "marks": 1.0, "answer": "{f}x+{d}y", "type": "jme", "maxlength": {"length": 14.0, "message": "

Collect together all $x$ and $y$ terms and input your answer in the form $ax+by$ for suitable values of $a$ and $b$.

", "partialcredit": 0.0}}], "type": "gapfill", "marks": 0.0}], "extensions": [], "statement": "

Express the following expression as $ax+by$ for suitable integers $a$ and $b$.

", "variable_groups": [], "progress": "ready", "type": "question", "variables": {"a": {"definition": "random(-6..6 except [0,1,-1])", "name": "a"}, "c": {"definition": "random(-5..5 except 0)", "name": "c"}, "b": {"definition": "random(1..6)", "name": "b"}, "d": {"definition": "a*c+b1+a2*c2", "name": "d"}, "f": {"definition": "a*b+a1+a2*b2", "name": "f"}, "a1": {"definition": "random(-9..9 except [0,a,-a])", "name": "a1"}, "a2": {"definition": "random(-5..5 except [0,1,-1])", "name": "a2"}, "b1": {"definition": "random(-9..9 except 0)", "name": "b1"}, "b2": {"definition": "random(-9..9 except [0,a,a1])", "name": "b2"}, "c2": {"definition": "random(-9..9 except 0)", "name": "c2"}}, "metadata": {"notes": "\n \t\t

17/08/2012:

\n \t\t

Added tags.

\n \t\t

Added description.

\n \t\t

Checked calculations.OK.

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

Express a sum of linear terms in $x$ and $y$ as a single linear term in $x$ and $y$.

", "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/"}]}