// 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, "typeendtoleave": 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": "

Do not include brackets in your answer.

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

(Do not include brackets in your answer.)

", "marks": 0, "showCorrectAnswer": true, "scripts": {}}], "metadata": {"description": "

Inputting algebraic expressions into Numbas.

", "notes": "", "licence": "Creative Commons Attribution 4.0 International"}, "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", "preamble": {"css": "", "js": ""}, "functions": {}, "tags": ["algebraic expressions", "checked2015", "input", "introduction", "notation", "Numbas", "numbas", "polynomials", "symbols"], "advice": "", "variables": {"a": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "definition": "random(2..9)"}, "d": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "definition": "random(1..9)"}, "b": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "definition": "random(2..4)"}, "c": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "definition": "s*random(1..9)"}, "s": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "name": "s", "definition": "random(1,-1)"}}, "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/"}]}