// Numbas version: exam_results_page_options {"name": "Numbas Input: Algebra, Powers and products", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"b": {"templateType": "anything", "name": "b", "description": "", "definition": "random(2..4)", "group": "Ungrouped variables"}, "c": {"templateType": "anything", "name": "c", "description": "", "definition": "s*random(1..9)", "group": "Ungrouped variables"}, "a": {"templateType": "anything", "name": "a", "description": "", "definition": "random(2..9)", "group": "Ungrouped variables"}, "s": {"templateType": "anything", "name": "s", "description": "", "definition": "random(1,-1)", "group": "Ungrouped variables"}, "d": {"templateType": "anything", "name": "d", "description": "", "definition": "random(1..9)", "group": "Ungrouped variables"}}, "statement": "

This example shows you how to input algebraic expressions.

\n

You will see that your answer will appear in mathematical notation next to the input box. Remember to check that your answer has been interpreted as you intended.

", "name": "Numbas Input: Algebra, Powers and products", "parts": [{"marks": 0, "customMarkingAlgorithm": "", "scripts": {}, "extendBaseMarkingAlgorithm": true, "customName": "", "sortAnswers": false, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "showFeedbackIcon": true, "type": "gapfill", "prompt": "

To input an expression such as $3x^2+5x-2$,  just type 3*x^2+5*x-2.

\n

Notice that you need to use the asterisk (*) to indicate multiplication.

\n

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

", "gaps": [{"vsetRangePoints": 5, "customMarkingAlgorithm": "", "showPreview": true, "extendBaseMarkingAlgorithm": true, "customName": "", "variableReplacementStrategy": "originalfirst", "checkingType": "absdiff", "checkingAccuracy": 0.001, "valuegenerators": [{"name": "x", "value": ""}], "showFeedbackIcon": true, "marks": 1, "checkVariableNames": false, "answerSimplification": "all", "vsetRange": [0, 1], "failureRate": 1, "answer": "{a}*x^{b}+{c}x+{d}", "showCorrectAnswer": true, "scripts": {}, "type": "jme", "unitTests": [], "useCustomName": false, "variableReplacements": []}], "unitTests": [], "useCustomName": false, "variableReplacements": []}, {"marks": 0, "customMarkingAlgorithm": "", "scripts": {}, "extendBaseMarkingAlgorithm": true, "customName": "", "sortAnswers": false, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "showFeedbackIcon": true, "type": "gapfill", "prompt": "

Expand these brackets and input the resulting expression:

\n

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

\n

Note that you must enter $x$ * $y$ to show the expression $xy$.  The input $xy$ is not interpreted as a product.

\n

", "gaps": [{"vsetRangePoints": 5, "customMarkingAlgorithm": "", "showPreview": true, "extendBaseMarkingAlgorithm": true, "customName": "", "variableReplacementStrategy": "originalfirst", "checkingType": "absdiff", "notallowed": {"showStrings": false, "message": "

Do not include brackets in your answer.

", "strings": ["("], "partialCredit": 0}, "checkingAccuracy": 0.001, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}], "showFeedbackIcon": true, "marks": 1, "checkVariableNames": true, "answerSimplification": "all", "vsetRange": [0, 1], "failureRate": 1, "answer": "x^2+{a+c}x*y+{a*c}y^2", "showCorrectAnswer": true, "scripts": {}, "type": "jme", "unitTests": [], "useCustomName": false, "variableReplacements": []}], "unitTests": [], "useCustomName": false, "variableReplacements": []}], "functions": {}, "rulesets": {}, "variable_groups": [], "preamble": {"css": "", "js": ""}, "tags": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "extensions": [], "ungrouped_variables": ["a", "s", "b", "c", "d"], "advice": "", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

How to input x^2 and x*y.

"}, "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}