// Numbas version: exam_results_page_options {"name": "02 - Dividing a polynomial with remainders", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "02 - Dividing a polynomial with remainders", "tags": [], "metadata": {"description": "

Exam Question

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "extensions": [], "variables": {"const": {"name": "const", "group": "Ungrouped variables", "definition": "random(-4..4 except 0)", "description": "

Constant term in part b.

", "templateType": "anything"}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(-4..4 except 0 except 1 except -1 except 2 except -2)", "description": "

Dividing term.

", "templateType": "anything"}, "coef_x": {"name": "coef_x", "group": "Ungrouped variables", "definition": "random(-3..3 except 0 except const2)", "description": "

Coefficient of x in part b.

", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "

Positive coefficient of x^3

", "templateType": "anything"}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-4..4 except 0)", "description": "

Coefficient of x.

", "templateType": "anything"}, "const2": {"name": "const2", "group": "Ungrouped variables", "definition": "random(-3..3 except 0)", "description": "

Constant term in the divisor in part b.

", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-4..4 except 0 except f)", "description": "

Coefficient of x^2.

", "templateType": "anything"}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-4..4 except c except 0)", "description": "

Free coefficient.

", "templateType": "anything"}, "coef2_x": {"name": "coef2_x", "group": "Ungrouped variables", "definition": "random(-3..3 except 0)", "description": "

Coefficient of x in divisor in part b.

", "templateType": "anything"}, "coef_x2": {"name": "coef_x2", "group": "Ungrouped variables", "definition": "random(-3..3 except 0 except coef2_x)", "description": "

Coefficient of x^2 in part b.

", "templateType": "anything"}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "((b)-(a)*(f))*f", "description": "

Used to simplify calculation.

", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "d", "f", "n", "coef_x2", "coef_x", "const", "coef2_x", "const2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": "5", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Find the remainder when $g(x) = \\simplify{{a}x^3+{b}x^2+{c}x+{d}}$ is divided by $(\\simplify{x+{f}})$.

\n

(enter only the numerator of your answer, do not enter the denominator    $\\frac{...}{(\\simplify{x+{f}})}$ )

", "answer": "{{d}-{c}*{f}+{b}*{f}^2-{a}*{f}^3}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "5", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Find the remainder when $p(x) = \\simplify{x^3+{coef_x2}x^2+{coef_x}x+{const}}$ is divided by $\\simplify{x^2+{coef2_x}x+{const2}}$.

\n

(enter only the numerator of your answer, do not enter the denominator    $\\frac{...}{(\\simplify{x^2+{coef2_x}x+{const2}}}$ )

", "answer": "({coef_x-const2-coef2_x*(coef_x2-coef2_x)})x+{const-const2*(coef_x2-coef2_x)} ", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "valuegenerators": [{"name": "x", "value": ""}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}, {"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}, {"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}]}