// Numbas version: finer_feedback_settings {"name": "Solving quadratic equations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "statement": "

There are two values that satisfy the quadratic equation:

\n

\\(\\var{a1}x^2+\\var{b1}x+\\var{c1}=0\\)

", "ungrouped_variables": ["a1", "b1", "c1"], "parts": [{"gaps": [{"showFeedbackIcon": true, "precisionType": "dp", "correctAnswerStyle": "plain", "correctAnswerFraction": false, "precision": "3", "allowFractions": false, "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "marks": "2", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "minValue": "-{b1}/(2*{a1})+sqrt({b1}^2-4*{a1}*{c1})/(2*{a1})", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "type": "numberentry", "scripts": {}, "maxValue": "-{b1}/(2*{a1})+sqrt({b1}^2-4*{a1}*{c1})/(2*{a1})", "showPrecisionHint": false, "showCorrectAnswer": true}, {"showFeedbackIcon": true, "precisionType": "dp", "correctAnswerStyle": "plain", "correctAnswerFraction": false, "precision": "3", "allowFractions": false, "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "marks": "2", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "minValue": "-{b1}/(2*{a1})-sqrt({b1}^2-4*{a1}*{c1})/(2*{a1})", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "type": "numberentry", "scripts": {}, "maxValue": "-{b1}/(2*{a1})-sqrt({b1}^2-4*{a1}*{c1})/(2*{a1})", "showPrecisionHint": false, "showCorrectAnswer": true}], "showCorrectAnswer": true, "marks": 0, "variableReplacements": [], "type": "gapfill", "prompt": "

Type in the greater of the two values that satisfies the equation. Input your answer correct to three decimal places.

\n

\\(x\\) = [[0]]

\n

Type in the lesser of the two values that satisfies the equation. Input your answer correct to three decimal places.

\n

\\(x\\) = [[1]]

", "scripts": {}, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true}], "tags": [], "rulesets": {}, "advice": "

The formula for solving a quadratic equation of the form  \\(ax^2+bx+c=0\\)  is given by

\n

\\(x=\\frac{-b\\pm \\sqrt{b^2-4ac}}{2a}\\)

\n

In this example  \\(a=\\var{a1},\\,\\,\\,b=\\var{b1}\\)  and  \\(c=\\var{c1}\\)

\n

\\(x=\\frac{-\\var{b1}\\pm \\sqrt{\\var{b1}^2-4\\times\\var{a1}\\times\\var{c1}}}{2\\times\\var{a1}}\\)

\n

\\(x=\\frac{-\\var{b1}\\pm \\sqrt{\\simplify{{b1}^2-4*{a1}*{c1}}}}{\\simplify{2*{a1}}}\\)

\n

\\(x=\\simplify{(-{b1}+ ({b1}^2-4*{a1}*{c1})^0.5)/(2*{a1})}\\)   or   \\(x=\\simplify{(-{b1}- ({b1}^2-4*{a1}*{c1})^0.5)/(2*{a1})}\\)

", "variables": {"b1": {"templateType": "randrange", "group": "Ungrouped variables", "name": "b1", "definition": "random(16..25#1)", "description": ""}, "c1": {"templateType": "randrange", "group": "Ungrouped variables", "name": "c1", "definition": "random(1..10#1)", "description": ""}, "a1": {"templateType": "randrange", "group": "Ungrouped variables", "name": "a1", "definition": "random(1..6#1)", "description": ""}}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Solving quadratic equations using a formula,

"}, "variable_groups": [], "variablesTest": {"condition": "b1^2>4*a1*c1", "maxRuns": "1"}, "preamble": {"js": "", "css": ""}, "name": "Solving quadratic equations", "functions": {}, "type": "question", "contributors": [{"name": "Nigel Atkins", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/275/"}]}]}], "contributors": [{"name": "Nigel Atkins", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/275/"}]}