// Numbas version: exam_results_page_options {"name": "Hussam's copy of Hussam's copy of 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": [{"showQuestionGroupNames": false, "type": "question", "question_groups": [{"pickingStrategy": "all-ordered", "name": "", "questions": [], "pickQuestions": 0}], "statement": "

In this example, we look at how you enter algebraic expressions - those involving symbols.

\n

The box next to your input shows what you've written in mathematical notation and is very important as you can check it against the expression you had in mind.

", "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "rulesets": {}, "ungrouped_variables": ["a", "s", "b", "c", "d"], "parts": [{"gaps": [{"showpreview": true, "vsetrange": [0, 1], "type": "jme", "checkingaccuracy": 0.001, "showCorrectAnswer": true, "checkvariablenames": false, "answersimplification": "all", "expectedvariablenames": [], "marks": 1, "checkingtype": "absdiff", "scripts": {}, "answer": "{a}*x^{b}+{c}x+{d}", "vsetrangepoints": 5}], "type": "gapfill", "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, "showCorrectAnswer": true, "scripts": {}}, {"gaps": [{"notallowed": {"showStrings": false, "partialCredit": 0, "strings": ["("], "message": "

"}, "showpreview": true, "vsetrange": [0, 1], "type": "jme", "checkingaccuracy": 0.001, "showCorrectAnswer": true, "checkvariablenames": true, "answersimplification": "all", "expectedvariablenames": ["x", "y"], "marks": 1, "checkingtype": "absdiff", "scripts": {}, "answer": "x^2+{a+c}x*y+{a*c}y^2", "vsetrangepoints": 5}], "type": "gapfill", "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