// Numbas version: exam_results_page_options {"name": "Substituting values 3", "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", "d", "root1", "root2", "r"], "name": "Substituting values 3", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

Substitute in the values appropriately. For example, $x=\\frac{-\\var{b}\\pm\\sqrt{(\\var{b})^2-4\\times\\var{a}\\times\\var{c}}}{2\\times\\var{a}} = \\var{root1}, \\var{root2}$

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

Use the formula to solve the following equation and give your answers to 3 decimal places, in ascending order

\n

$\\simplify{{a}x^2+{b}x+{c}=0}$

\n

$x=$[[0]],[[1]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "

You have not given your answer to the correct precision.

", "allowFractions": false, "variableReplacements": [], "precision": "3", "maxValue": "root1", "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": 0, "scripts": {}, "marks": 1, "minValue": "root1", "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "3", "maxValue": "root2", "variableReplacementStrategy": "originalfirst", "strictPrecision": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": 0, "scripts": {}, "marks": 1, "minValue": "root2", "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

A quadratic equation $ax^2+bx+c=0$ can be solved by using the following formula

\n

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

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": "d>0"}, "variables": {"a": {"definition": "random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(-9..9 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(-9..9 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "b^2-4*a*c", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "r": {"definition": "d^0.5", "templateType": "anything", "group": "Ungrouped variables", "name": "r", "description": ""}, "root1": {"definition": "(-b-r)/(2*a)", "templateType": "anything", "group": "Ungrouped variables", "name": "root1", "description": ""}, "root2": {"definition": "(-b+r)/(2*a)", "templateType": "anything", "group": "Ungrouped variables", "name": "root2", "description": ""}}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "joshua boddy", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/557/"}]}]}], "contributors": [{"name": "joshua boddy", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/557/"}]}