// Numbas version: exam_results_page_options {"name": "Francis 's copy of 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": [{"functions": {}, "ungrouped_variables": ["a", "s", "b", "c", "d"], "name": "Francis 's copy of Numbas Input: Algebra, Powers and products", "tags": ["algebraic expressions", "input", "introduction", "notation", "Numbas", "numbas", "polynomials", "symbols"], "advice": "", "rulesets": {}, "parts": [{"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]]

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

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"notallowed": {"message": "

Do not include brackets in your answer.

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

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"a": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "s": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s", "description": ""}, "b": {"definition": "random(2..4)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "c": {"definition": "s*random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "d": {"definition": "random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}}, "metadata": {"description": "

How to input x^2 and x*y.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Francis Duah", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/339/"}]}]}], "contributors": [{"name": "Francis Duah", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/339/"}]}