// Numbas version: finer_feedback_settings {"name": "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": {"notes": "", "licence": "Creative Commons Attribution 4.0 International", "description": "
Inputting algebraic expressions into Numbas.
"}, "tags": ["algebraic expressions", "checked2015", "input", "introduction", "notation", "Numbas", "numbas", "polynomials", "symbols"], "name": "Hussam's copy of Hussam's copy of Hussam's copy of How to enter algebraic expressions - Getting Started", "rulesets": {}, "variable_groups": [], "parts": [{"showCorrectAnswer": true, "prompt": "Inputting polynomials such as $3x^2+5x-2$ is easy : just input 3*x^2+5*x-2
.
Try this:
\nInput this polynomial: $\\simplify[all]{{a}*x^{b}+{c}*x+{d}}=\\;$[[0]]
", "marks": 0, "gaps": [{"showCorrectAnswer": true, "vsetrangepoints": 5, "answersimplification": "all", "marks": 1, "vsetrange": [0, 1], "checkingtype": "absdiff", "answer": "{a}*x^{b}+{c}x+{d}", "checkvariablenames": false, "checkingaccuracy": 0.001, "showpreview": true, "type": "jme", "expectedvariablenames": [], "scripts": {}}], "type": "gapfill", "scripts": {}}, {"showCorrectAnswer": true, "prompt": "Now consider this problem.
\nExpand the brackets and input the resulting expression:
\n$\\simplify[all]{(x+{a}y)(x+{c}y)}=\\;$[[0]]
\nMake sure that you input an expression in your answer such as $xy$ as x*y
.
(Do not include brackets in your answer.)
", "marks": 0, "gaps": [{"showCorrectAnswer": true, "vsetrangepoints": 5, "answersimplification": "all", "showpreview": true, "vsetrange": [0, 1], "notallowed": {"message": "Do not include brackets in your answer.
", "strings": ["("], "showStrings": false, "partialCredit": 0}, "checkingtype": "absdiff", "answer": "x^2+{a+c}x*y+{a*c}y^2", "checkvariablenames": true, "checkingaccuracy": 0.001, "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.
\nThe 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", "templateType": "anything", "definition": "s*random(1..9)", "group": "Ungrouped variables", "description": ""}, "b": {"name": "b", "templateType": "anything", "definition": "random(2..4)", "group": "Ungrouped variables", "description": ""}, "a": {"name": "a", "templateType": "anything", "definition": "random(2..9)", "group": "Ungrouped variables", "description": ""}, "d": {"name": "d", "templateType": "anything", "definition": "random(1..9)", "group": "Ungrouped variables", "description": ""}, "s": {"name": "s", "templateType": "anything", "definition": "random(1,-1)", "group": "Ungrouped variables", "description": ""}}, "functions": {}, "ungrouped_variables": ["a", "s", "b", "c", "d"], "question_groups": [{"questions": [], "name": "", "pickQuestions": 0, "pickingStrategy": "all-ordered"}], "variablesTest": {"condition": "", "maxRuns": 100}, "type": "question", "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/"}]}