// Numbas version: finer_feedback_settings {"name": "Gizem's copy of Algebra: Solving quadratics by completing the square. shorter", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"preamble": {"css": "", "js": ""}, "parts": [{"unitTests": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"failureRate": 1, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "answer": "(x+{a[0]})^2+{b[0]}", "checkingAccuracy": 0.001, "vsetRangePoints": 5, "showPreview": true, "unitTests": [], "scripts": {}, "vsetRange": [0, 1], "showCorrectAnswer": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "notallowed": {"showStrings": false, "partialCredit": 0, "message": "
Input your answer in the form $(x+a)^2+b$.
", "strings": ["x^2", "x*x", "x x", "x(", "x*("]}, "type": "jme", "showFeedbackIcon": true, "answerSimplification": "std", "checkVariableNames": false, "marks": "1", "customMarkingAlgorithm": "", "musthave": {"showStrings": false, "partialCredit": 0, "message": "please input in the form $(x+a)^2+b$
", "strings": ["(", ")", "^"]}, "expectedVariableNames": []}, {"markPerCell": false, "unitTests": [], "variableReplacementStrategy": "originalfirst", "numColumns": 1, "allowResize": true, "customMarkingAlgorithm": "", "marks": 1, "type": "matrix", "showFeedbackIcon": true, "tolerance": 0, "numRows": 1, "correctAnswerFractions": false, "extendBaseMarkingAlgorithm": true, "scripts": {}, "correctAnswer": "matrix([{xmin[0]}],[{xmax[0]}])", "showCorrectAnswer": true, "allowFractions": false, "variableReplacements": []}, {"markPerCell": false, "unitTests": [], "variableReplacementStrategy": "originalfirst", "numColumns": 1, "allowResize": true, "customMarkingAlgorithm": "", "marks": 1, "type": "matrix", "showFeedbackIcon": true, "tolerance": 0, "numRows": 1, "correctAnswerFractions": false, "extendBaseMarkingAlgorithm": true, "scripts": {}, "correctAnswer": "matrix([{xmin[3]}])", "showCorrectAnswer": true, "allowFractions": false, "variableReplacements": []}], "customMarkingAlgorithm": "", "prompt": "Complete the square on $\\simplify{x^2+{2*a[0]}x+ {a[0]^2+b[0]}}$ [[0]]
\nHence solve $\\simplify{x^2+{2*a[0]}x+ {a[0]^2+b[0]}} = \\var{fx[0]}$ [[1]]
\nAlso solve $\\simplify{x^2+{2*a[0]}x+ {a[0]^2+b[0]}} = \\var{fx[3]}$ [[2]]
", "marks": 0, "type": "gapfill", "sortAnswers": false, "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "scripts": {}, "showCorrectAnswer": true, "variableReplacements": []}], "name": "Gizem's copy of Algebra: Solving quadratics by completing the square. shorter", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "A few quadratic equations are given, to be solved by completing the square. The number of solutions is randomised.
"}, "variablesTest": {"maxRuns": 100, "condition": ""}, "ungrouped_variables": ["a", "b", "shift", "xmin", "xmax", "fx"], "extensions": [], "tags": [], "functions": {}, "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "variables": {"a": {"templateType": "anything", "description": "", "definition": "vector([random(1..5)]+[random(-1..-5)]+[random(-1..-5)]+[random(-1..-5)]+[random(1..5)])", "name": "a", "group": "Ungrouped variables"}, "xmax": {"templateType": "anything", "description": "", "definition": "vector([-a[0]]+[-a[0]]+[-a[0]]+[-a[0]]+[-a[1]]+[-a[1]]+[-a[1]]+[-a[1]])+shift", "name": "xmax", "group": "Ungrouped variables"}, "fx": {"templateType": "anything", "description": "", "definition": "vector([(xmax[0]+a[0])^2+b[0]]+[(xmax[1]+a[0])^2+b[0]]+[(xmax[2]+a[0])^2+b[0]]+[(xmax[3]+a[0])^2+b[0]]+[(xmax[4]+a[1])^2+b[1]]+[(xmax[5]+a[1])^2+b[1]]+[(xmax[6]+a[1])^2+b[1]]+[(xmax[7]+a[1])^2+b[1]])", "name": "fx", "group": "Ungrouped variables"}, "b": {"templateType": "anything", "description": "", "definition": "vector([random(-10..25)] + [random(-10..25)] + [random(-10..25)] + [random(-10..25)] + [random(-10..25)] )", "name": "b", "group": "Ungrouped variables"}, "shift": {"templateType": "anything", "description": "", "definition": "vector(shuffle(1..9#4)+[0]+shuffle(1..9#4)+[0])", "name": "shift", "group": "Ungrouped variables"}, "xmin": {"templateType": "anything", "description": "", "definition": "vector([-a[0]]+[-a[0]]+[-a[0]]+[-a[0]]+[-a[1]]+[-a[1]]+[-a[1]]+[-a[1]])-shift", "name": "xmin", "group": "Ungrouped variables"}}, "advice": "See Lecture 5.4 for examples of me completing the square.
", "variable_groups": [], "statement": "Solve these equations by completing the square. If there is more than one answer increase the number of ROWS and enter your answers in ASCENDING ORDER.
", "type": "question", "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}, {"name": "Gizem Intepe", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2097/"}], "resources": []}]}], "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}, {"name": "Gizem Intepe", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2097/"}]}