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

Inputting algebraic expressions into Numbas.

", "licence": "Creative Commons Attribution 4.0 International", "notes": ""}, "tags": ["algebraic expressions", "checked2015", "input", "introduction", "notation", "Numbas", "numbas", "polynomials", "symbols"], "name": "Hussam's copy of How to enter algebraic expressions - Getting Started", "question_groups": [{"questions": [], "name": "", "pickQuestions": 0, "pickingStrategy": "all-ordered"}], "variable_groups": [], "parts": [{"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]]

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

(Do not include brackets in your answer.)

", "showCorrectAnswer": true, "marks": 0, "gaps": [{"showCorrectAnswer": true, "vsetrangepoints": 5, "answersimplification": "all", "showpreview": true, "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkingtype": "absdiff", "answer": "x^2+{a+c}x*y+{a*c}y^2", "checkvariablenames": true, "notallowed": {"message": "

Do not include brackets in your answer.

", "strings": ["("], "showStrings": false, "partialCredit": 0}, "marks": 1, "type": "jme", "expectedvariablenames": ["x", "y"], "scripts": {}}], "type": "gapfill", "scripts": {}}], "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.

", "showQuestionGroupNames": false, "variables": {"c": {"name": "c", "description": "", "definition": "s*random(1..9)", "group": "Ungrouped variables", "templateType": "anything"}, "b": {"name": "b", "description": "", "definition": "random(2..4)", "group": "Ungrouped variables", "templateType": "anything"}, "a": {"name": "a", "description": "", "definition": "random(2..9)", "group": "Ungrouped variables", "templateType": "anything"}, "d": {"name": "d", "description": "", "definition": "random(1..9)", "group": "Ungrouped variables", "templateType": "anything"}, "s": {"name": "s", "description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "templateType": "anything"}}, "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "s", "b", "c", "d"], "type": "question", "rulesets": {}, "preamble": {"css": "", "js": ""}, "contributors": [{"name": "Hussam Muhamedsalih", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2515/"}]}]}], "contributors": [{"name": "Hussam Muhamedsalih", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2515/"}]}