// Numbas version: finer_feedback_settings {"name": "Musa's copy of 3 Solving a quadratic by using the quadratic formula", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Musa's copy of 3 Solving a quadratic by using the quadratic formula", "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "extensions": [], "variables": {"d": {"name": "d", "group": "Ungrouped variables", "definition": "if(c*b=a*dd,dd+1,dd)", "description": "", "templateType": "anything"}, "ccoeff": {"name": "ccoeff", "group": "Ungrouped variables", "definition": "c*d", "description": "", "templateType": "anything"}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything"}, "scoeff": {"name": "scoeff", "group": "Ungrouped variables", "definition": "a*b", "description": "", "templateType": "anything"}, "lengthdet": {"name": "lengthdet", "group": "Ungrouped variables", "definition": "abs(a*d-b*c)", "description": "", "templateType": "anything"}, "lcoeff": {"name": "lcoeff", "group": "Ungrouped variables", "definition": "a*d+b*c", "description": "", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything"}, "disc": {"name": "disc", "group": "Ungrouped variables", "definition": "lcoeff^2-4*scoeff*ccoeff", "description": "", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything"}, "dd": {"name": "dd", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything"}, "na": {"name": "na", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything"}, "nb": {"name": "nb", "group": "Ungrouped variables", "definition": "random(-5..5 except na)", "description": "", "templateType": "anything"}, "nc": {"name": "nc", "group": "Ungrouped variables", "definition": "nb^2", "description": "", "templateType": "anything"}, "nc2": {"name": "nc2", "group": "Ungrouped variables", "definition": "int(nb2^2/(4*na2))+random(1..5)", "description": "", "templateType": "anything"}, "na2": {"name": "na2", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything"}, "nb2": {"name": "nb2", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "", "templateType": "anything"}, "na3": {"name": "na3", "group": "Ungrouped variables", "definition": "random(-5..5 except [-1,0,1])", "description": "", "templateType": "anything"}, "nb3": {"name": "nb3", "group": "Ungrouped variables", "definition": "random(-10..10)", "description": "", "templateType": "anything"}, "nc3": {"name": "nc3", "group": "Ungrouped variables", "definition": "random(-8..8)", "description": "", "templateType": "anything"}, "disc3": {"name": "disc3", "group": "Ungrouped variables", "definition": "nb3^2-4*na3*nc3", "description": "", "templateType": "anything"}, "sol3": {"name": "sol3", "group": "Ungrouped variables", "definition": "if(disc3>0,2,if(disc3<0,0,1))", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "dd", "d", "scoeff", "lcoeff", "ccoeff", "disc", "lengthdet", "na", "nb", "nc", "nc2", "na2", "nb2", "na3", "nb3", "nc3", "disc3", "sol3"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "
Use the quadratic formula to solve the following quadratic equation:
\n$\\simplify{{4*na^2}x^2+{4*na*nb}x+{nc}=0}$.
\n\n$x=$ [[0]], [[1]]
\n\nNote: Put the smallest value (the one with the negative in front of the square root) in the first gap. If there is no solution put \"none\".
", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "minValue": "-nb/(2*na)", "maxValue": "-nb/(2*na)", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "minValue": "-nb/(2*na)", "maxValue": "-nb/(2*na)", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "Given the quadratic equation:
\n$\\simplify{{na3}x^2+{nb3}x+{nc3}=0}$.
\n\nfind the discriminant and give the number of real roots
\nDiscriminant = [[0]]
\nThe number of real roots [[1]]
", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "minValue": "nb3^2-4*na3*nc3", "maxValue": "nb3^2-4*na3*nc3", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "minValue": "sol3", "maxValue": "sol3", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}]}