// Numbas version: finer_feedback_settings {"name": "Solving quadratic equations using the quadratic formula - AMRC", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"maxRuns": "1", "condition": "b1^2>4*a1*c1"}, "name": "Solving quadratic equations using the quadratic formula - AMRC", "variable_groups": [], "functions": {}, "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}\\)
\nIn 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})}\\)
", "tags": [], "ungrouped_variables": ["a1", "b1", "c1"], "preamble": {"css": "", "js": ""}, "parts": [{"type": "gapfill", "showCorrectAnswer": true, "showFeedbackIcon": true, "prompt": "Type in the greater of the two values that satisfies the equation. Input your answer correct to three decimal places.
\n\\(x\\) = [[0]]
\nType in the lesser of the two values that satisfies the equation. Input your answer correct to three decimal places.
\n\\(x\\) = [[1]]
", "gaps": [{"allowFractions": false, "precisionType": "dp", "correctAnswerFraction": false, "type": "numberentry", "minValue": "-{b1}/(2*{a1})+sqrt({b1}^2-4*{a1}*{c1})/(2*{a1})", "mustBeReducedPC": 0, "showPrecisionHint": false, "precisionPartialCredit": 0, "strictPrecision": false, "marks": "2", "variableReplacements": [], "precision": "3", "maxValue": "-{b1}/(2*{a1})+sqrt({b1}^2-4*{a1}*{c1})/(2*{a1})", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "precisionMessage": "You have not given your answer to the correct precision.", "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacementStrategy": "originalfirst", "scripts": {}}, {"allowFractions": false, "precisionType": "dp", "correctAnswerFraction": false, "type": "numberentry", "minValue": "-{b1}/(2*{a1})-sqrt({b1}^2-4*{a1}*{c1})/(2*{a1})", "mustBeReducedPC": 0, "showPrecisionHint": false, "precisionPartialCredit": 0, "strictPrecision": false, "marks": "2", "variableReplacements": [], "precision": "3", "maxValue": "-{b1}/(2*{a1})-sqrt({b1}^2-4*{a1}*{c1})/(2*{a1})", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "precisionMessage": "You have not given your answer to the correct precision.", "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacementStrategy": "originalfirst", "scripts": {}}], "variableReplacementStrategy": "originalfirst", "scripts": {}, "marks": 0, "variableReplacements": []}], "statement": "There are two values that satisfy the quadratic equation:
\n\\(\\var{a1}x^2+\\var{b1}x+\\var{c1}=0\\)
", "variables": {"c1": {"group": "Ungrouped variables", "definition": "random(1..10#1)", "name": "c1", "description": "", "templateType": "randrange"}, "a1": {"group": "Ungrouped variables", "definition": "random(1..6#1)", "name": "a1", "description": "", "templateType": "randrange"}, "b1": {"group": "Ungrouped variables", "definition": "random(16..25#1)", "name": "b1", "description": "", "templateType": "randrange"}}, "metadata": {"description": "Solving quadratic equations using a formula,
", "licence": "Creative Commons Attribution 4.0 International"}, "extensions": [], "rulesets": {}, "type": "question", "contributors": [{"name": "Ian Loasby", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/890/"}]}]}], "contributors": [{"name": "Ian Loasby", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/890/"}]}