// Numbas version: finer_feedback_settings {"name": "Luis'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": [{"variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"gaps": [{"answer": "{a}*x^{b}+{c}x+{d}", "vsetrange": [0, 1], "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "type": "jme", "checkingaccuracy": 0.001, "answersimplification": "all", "showCorrectAnswer": true, "marks": 1, "checkvariablenames": false, "expectedvariablenames": [], "vsetrangepoints": 5}], "showCorrectAnswer": true, "marks": 0, "scripts": {}, "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]]

", "type": "gapfill"}, {"gaps": [{"answer": "x^2+{a+c}x*y+{a*c}y^2", "vsetrange": [0, 1], "notallowed": {"showStrings": false, "partialCredit": 0, "strings": ["("], "message": "

Do not include brackets in your answer.

"}, "checkingtype": "absdiff", "scripts": {}, "type": "jme", "checkingaccuracy": 0.001, "showpreview": true, "showCorrectAnswer": true, "marks": 1, "checkvariablenames": true, "expectedvariablenames": ["x", "y"], "answersimplification": "all", "vsetrangepoints": 5}], "showCorrectAnswer": true, "marks": 0, "scripts": {}, "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.)

", "type": "gapfill"}], "name": "Luis's copy of How to enter algebraic expressions - Getting Started", "ungrouped_variables": ["a", "s", "b", "c", "d"], "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.

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

Inputting algebraic expressions into Numbas.

", "licence": "Creative Commons Attribution 4.0 International", "notes": ""}, "rulesets": {}, "functions": {}, "variable_groups": [], "question_groups": [{"questions": [], "pickQuestions": 0, "name": "", "pickingStrategy": "all-ordered"}], "showQuestionGroupNames": false, "advice": "", "type": "question", "tags": ["algebraic expressions", "checked2015", "input", "introduction", "notation", "Numbas", "numbas", "polynomials", "symbols"], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}