// 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 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"}, "extensions": [], "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"}}, "name": "Hussam's copy of 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", "rulesets": {}, "tags": [], "functions": {}, "parts": [{"showCorrectAnswer": true, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "prompt": "

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

\n

Try this:

\n

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

", "customMarkingAlgorithm": "", "marks": 0, "variableReplacementStrategy": "originalfirst", "gaps": [{"showCorrectAnswer": true, "variableReplacements": [], "checkingType": "absdiff", "vsetRange": [0, 1], "answerSimplification": "all", "showPreview": true, "checkingAccuracy": 0.001, "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "expectedVariableNames": [], "failureRate": 1, "checkVariableNames": false, "answer": "{a}*x^{b}+{c}x+{d}", "customMarkingAlgorithm": "", "marks": 1, "variableReplacementStrategy": "originalfirst", "type": "jme", "unitTests": [], "showFeedbackIcon": true, "scripts": {}}], "type": "gapfill", "unitTests": [], "showFeedbackIcon": true, "sortAnswers": false, "scripts": {}}, {"showCorrectAnswer": true, "variableReplacements": [], "extendBaseMarkingAlgorithm": 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

(Do not include brackets in your answer.)

", "customMarkingAlgorithm": "", "marks": 0, "variableReplacementStrategy": "originalfirst", "gaps": [{"showCorrectAnswer": true, "variableReplacements": [], "checkingType": "absdiff", "vsetRange": [0, 1], "answerSimplification": "all", "showPreview": true, "checkingAccuracy": 0.001, "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "expectedVariableNames": ["x", "y"], "failureRate": 1, "checkVariableNames": true, "answer": "x^2+{a+c}x*y+{a*c}y^2", "customMarkingAlgorithm": "", "marks": 1, "notallowed": {"message": "

Do not include brackets in your answer.

", "strings": ["("], "showStrings": false, "partialCredit": 0}, "variableReplacementStrategy": "originalfirst", "type": "jme", "unitTests": [], "showFeedbackIcon": true, "scripts": {}}], "type": "gapfill", "unitTests": [], "showFeedbackIcon": true, "sortAnswers": false, "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.

", "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "s", "b", "c", "d"], "preamble": {"css": "", "js": ""}, "type": "question", "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/"}]}