// Numbas version: exam_results_page_options {"name": "Hussam's copy of Hussam's copy of Hussam's copy of How to enter algebraic expressions - Getting Started", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "", "metadata": {"notes": "", "licence": "Creative Commons Attribution 4.0 International", "description": "

Inputting algebraic expressions into Numbas.

"}, "tags": ["algebraic expressions", "checked2015", "input", "introduction", "notation", "Numbas", "numbas", "polynomials", "symbols"], "name": "Hussam's copy of Hussam's copy of Hussam's copy of How to enter algebraic expressions - Getting Started", "rulesets": {}, "variable_groups": [], "parts": [{"showCorrectAnswer": true, "prompt": "

Inputting polynomials such as \$3x^2+5x-2\$ is easy : just input `3*x^2+5*x-2`.

\n

Try this:

\n

Input this polynomial: \$\\simplify[all]{{a}*x^{b}+{c}*x+{d}}=\\;\$[[0]]

", "marks": 0, "gaps": [{"showCorrectAnswer": true, "vsetrangepoints": 5, "answersimplification": "all", "marks": 1, "vsetrange": [0, 1], "checkingtype": "absdiff", "answer": "{a}*x^{b}+{c}x+{d}", "checkvariablenames": false, "checkingaccuracy": 0.001, "showpreview": true, "type": "jme", "expectedvariablenames": [], "scripts": {}}], "type": "gapfill", "scripts": {}}, {"showCorrectAnswer": true, "prompt": "

Now consider this problem.

\n

Expand the brackets and input the resulting expression:

\n

\$\\simplify[all]{(x+{a}y)(x+{c}y)}=\\;\$[[0]]

\n

Make sure that you input an expression in your answer such as \$xy\$ as `x*y`.

\n

", "marks": 0, "gaps": [{"showCorrectAnswer": true, "vsetrangepoints": 5, "answersimplification": "all", "showpreview": true, "vsetrange": [0, 1], "notallowed": {"message": "