// Numbas version: finer_feedback_settings {"name": "AC3 Algebraic substitution", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "AC3 Algebraic substitution", "tags": [], "metadata": {"description": "

Substitute values into an algebraic expression and calculate the result.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Evaluate the following expression,

\n

\\[\\simplify{p^{n}+{a}*r*t+{c}},\\]

\n

when $p = \\var{pval}$, $r = \\var{rval}$, and $t = \\var{tval}$.

", "advice": "

In order to evaluate $\\simplify{p^{n}+{a}*r*t+{c}},$ with the given values, $p = \\var{pval}$, $r = \\var{rval}$, and $t = \\var{tval}$, we replace each instance of that letter with its corresponding value and then apply the rules of BIDMAS:

\n

\\[\\var{pval}^\\var{n}+\\var{a}\\times \\var{rval} \\times \\var{tval} + \\var{c}\\]

\n

Which gives the answer $\\var{ans}$.

\n

Follow this link for more help on tackling these kind of questions.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"n": {"name": "n", "group": "Ungrouped variables", "definition": "random(2 .. 3#1)", "description": "", "templateType": "randrange", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2 .. 9#1)", "description": "", "templateType": "randrange", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "Random(-6..6 except 0)", "description": "", "templateType": "anything", "can_override": false}, "pval": {"name": "pval", "group": "Ungrouped variables", "definition": "random(2 .. 9#1)", "description": "", "templateType": "randrange", "can_override": false}, "rval": {"name": "rval", "group": "Ungrouped variables", "definition": "random(-9 .. -2#1)", "description": "", "templateType": "randrange", "can_override": false}, "tval": {"name": "tval", "group": "Ungrouped variables", "definition": "random(-12..12 except 0)", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "{pval}^{n}+{a}*{rval}*{tval}+{c}", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "a", "c", "pval", "rval", "tval", "ans"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{pval}^{n}+{a}*{rval}*{tval}+{c}", "maxValue": "{pval}^{n}+{a}*{rval}*{tval}+{c}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}]}]}], "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}]}