// Numbas version: finer_feedback_settings {"name": "PreCal Find Least Degree Polynomial given Roots a<>1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "rulesets": {}, "functions": {}, "preamble": {"css": "", "js": ""}, "metadata": {"description": "", "licence": "All rights reserved"}, "parts": [{"scripts": {}, "showCorrectAnswer": true, "useCustomName": false, "answer": "({r1frac[1]}x-{r1frac[0]})*(x-{r2})*(x-{r3})", "showPreview": true, "failureRate": 1, "variableReplacementStrategy": "originalfirst", "marks": 1, "adaptiveMarkingPenalty": 0, "checkVariableNames": false, "vsetRange": [0, 1], "variableReplacements": [], "vsetRangePoints": 5, "type": "jme", "checkingAccuracy": 0.001, "unitTests": [], "checkingType": "absdiff", "customMarkingAlgorithm": "", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "customName": "", "valuegenerators": [{"name": "x", "value": ""}]}], "extensions": [], "name": "PreCal Find Least Degree Polynomial given Roots a<>1", "statement": "
GIVEN: Roots, $\\{ \\var{r1}, \\var{r2}, \\var{r3} \\}$
\nFIND: The least degree polynomial function that has these roots.
\n\n$f(x)=$
", "advice": "", "tags": [], "ungrouped_variables": ["r1", "r2", "r3", "r1frac"], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"r2": {"description": "", "name": "r2", "definition": "random(-10..10 except r1)", "group": "Ungrouped variables", "templateType": "anything"}, "r1": {"description": "", "name": "r1", "definition": "random(-2..2#0.005)", "group": "Ungrouped variables", "templateType": "anything"}, "r1frac": {"description": "", "name": "r1frac", "definition": "rational_approximation(r1)", "group": "Ungrouped variables", "templateType": "anything"}, "r3": {"description": "", "name": "r3", "definition": "random(-10..10 except [r1,r2])", "group": "Ungrouped variables", "templateType": "anything"}}, "type": "question", "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}]}], "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}