// Numbas version: exam_results_page_options {"name": "Kjell's copy of Quadratic Formula: roots", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b", "c", "p", "q"], "name": "Kjell's copy of Quadratic Formula: roots", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"prompt": "

 $x_{1}=$ [[0]] 

\n

 $x_{2}=$ [[1]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all ", "scripts": {}, "answer": "(-{b}-sqrt({b}^2-4*{a}*{c}))/(2*{a})", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "(-{b}+ sqrt({b}^2-4*{a}*{c}))/(2*{a})", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

Find the roots $x_{1}, x_{2}$ of the quadratic equation $\\simplify{{a} x^2 +{b} x + {c} =0}.$ 

\n

(Note: Here $x_{1}<x_{2}.$ Your answers should have square roots and for any number $p,$ type sqrt(p) to denote $\\sqrt{p}$)

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": "b^2-4*a*c>0 "}, "variables": {"a": {"definition": "random(1,3,5)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "q": {"definition": "(-b+(b^2-4*a*c)^(1/2))/(2*a)", "templateType": "anything", "group": "Ungrouped variables", "name": "q", "description": ""}, "c": {"definition": "random(1,3,5)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(3,5,7,11)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "p": {"definition": "(-b-(b^2-4*a*c)^(1/2))/(2*a)", "templateType": "anything", "group": "Ungrouped variables", "name": "p", "description": ""}}, "metadata": {"notes": "

Quadratic formula

", "description": "

Solving quadratic equations using the formula

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