// Numbas version: finer_feedback_settings {"name": "Polynomials extension", "extensions": ["polynomials"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": [], "name": "Polynomials extension", "tags": ["demo"], "advice": "

$\\displaystyle \\simplify{{p2}/{p1} = ({q})+{r}/{p1}}$

", "rulesets": {}, "parts": [{"prompt": "

$\\var{p2} = $ [[0]] $(\\simplify{{p1}}) + $[[1]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {"mark": {"order": "before", "script": "this.studentAnswer = 'polynomial('+this.studentAnswer+')';"}}, "answer": "{q}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {"mark": {"order": "before", "script": "this.studentAnswer = 'polynomial('+this.studentAnswer+')';"}}, "answer": "{r}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": ["polynomials"], "statement": "

Divide $\\var{p2}$ by $\\var{p1}$.

", "variable_groups": [{"variables": ["p1m", "p2m", "qm", "big_power", "big_power_m"], "name": "Demo variables"}, {"variables": ["p1", "p2", "q", "r"], "name": "Used in marking"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"p2": {"definition": "polynomial(x)^random(2..4)+random(-5..5)", "templateType": "anything", "group": "Used in marking", "name": "p2", "description": "

A quadratic.

"}, "p1": {"definition": "polynomial(x,[random(-5..5),1])", "templateType": "anything", "group": "Used in marking", "name": "p1", "description": "

A linear polynomial.

"}, "big_power_m": {"definition": "p1m^123", "templateType": "anything", "group": "Demo variables", "name": "big_power_m", "description": ""}, "p2m": {"definition": "mod_polynomial(0x,3)+p2", "templateType": "anything", "group": "Demo variables", "name": "p2m", "description": ""}, "p1m": {"definition": "mod_polynomial(0*x,3)+p1", "templateType": "anything", "group": "Demo variables", "name": "p1m", "description": ""}, "q": {"definition": "quotient(p2,p1)", "templateType": "anything", "group": "Used in marking", "name": "q", "description": "

p2 divided by p1

"}, "r": {"definition": "remainder(p2,p1)", "templateType": "anything", "group": "Used in marking", "name": "r", "description": "

Remainder after dividing p2 by p1.

"}, "big_power": {"definition": "p1^123", "templateType": "anything", "group": "Demo variables", "name": "big_power", "description": ""}, "qm": {"definition": "quotient(p2m,p1m)", "templateType": "anything", "group": "Demo variables", "name": "qm", "description": ""}}, "metadata": {"description": "

Tiny demo question for the polynomials extension.

\n

It's important to wrap the student's answer in polynomial() in the marking script, otherwise the marking doesn't work.

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