// Numbas version: exam_results_page_options {"name": "Algebra: Completing the square", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"type": "gapfill", "sortAnswers": false, "showCorrectAnswer": true, "useCustomName": false, "unitTests": [], "prompt": "
$\\simplify{{q[0]}} = $ [[0]]
", "customName": "", "adaptiveMarkingPenalty": 0, "scripts": {}, "variableReplacements": [], "customMarkingAlgorithm": "", "marks": 0, "showFeedbackIcon": true, "gaps": [{"type": "jme", "answer": "{ans[0]}", "showCorrectAnswer": true, "useCustomName": false, "valuegenerators": [{"value": "", "name": "r"}], "checkVariableNames": false, "adaptiveMarkingPenalty": 0, "checkingType": "absdiff", "customMarkingAlgorithm": "", "marks": "1", "showFeedbackIcon": true, "failureRate": 1, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showPreview": true, "variableReplacements": [], "notallowed": {"partialCredit": 0, "showStrings": false, "message": "Input your answer in the form $(x+a)^2+b$.
", "strings": ["x^2", "x*x", "x x", "x(", "x*("]}, "customName": "", "scripts": {}, "checkingAccuracy": 0.001, "answerSimplification": "std", "unitTests": [], "musthave": {"partialCredit": 0, "showStrings": false, "message": "please input in the form $(x+a)^2+b$
", "strings": ["(", ")", "^"]}, "vsetRange": [0, 1], "vsetRangePoints": 5}], "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true}, {"type": "gapfill", "sortAnswers": false, "showCorrectAnswer": true, "useCustomName": false, "unitTests": [], "prompt": "$\\simplify{{q[1]}} = $ [[0]]
", "customName": "", "adaptiveMarkingPenalty": 0, "scripts": {}, "variableReplacements": [], "customMarkingAlgorithm": "", "marks": 0, "showFeedbackIcon": true, "gaps": [{"type": "jme", "answer": "{ans[1]}", "showCorrectAnswer": true, "useCustomName": false, "valuegenerators": [{"value": "", "name": "t"}], "checkVariableNames": false, "adaptiveMarkingPenalty": 0, "checkingType": "absdiff", "customMarkingAlgorithm": "", "marks": "1", "showFeedbackIcon": true, "failureRate": 1, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showPreview": true, "variableReplacements": [], "notallowed": {"partialCredit": 0, "showStrings": false, "message": "Input your answer in the form $(x+a)^2+b$.
", "strings": ["x^2", "x*x", "x x", "x(", "x*("]}, "customName": "", "scripts": {}, "checkingAccuracy": 0.001, "answerSimplification": "std", "unitTests": [], "musthave": {"partialCredit": 0, "showStrings": false, "message": "please input in the form $(x+a)^2+b$
", "strings": ["(", ")", "^"]}, "vsetRange": [0, 1], "vsetRangePoints": 5}], "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true}, {"type": "gapfill", "sortAnswers": false, "showCorrectAnswer": true, "useCustomName": false, "unitTests": [], "prompt": "$\\simplify{{q[2]}} = $ [[0]]
", "customName": "", "adaptiveMarkingPenalty": 0, "scripts": {}, "variableReplacements": [], "customMarkingAlgorithm": "", "marks": 0, "showFeedbackIcon": true, "gaps": [{"type": "jme", "answer": "{ans[2]}", "showCorrectAnswer": true, "useCustomName": false, "valuegenerators": [{"value": "", "name": "d"}], "checkVariableNames": false, "adaptiveMarkingPenalty": 0, "checkingType": "absdiff", "customMarkingAlgorithm": "", "marks": "1", "showFeedbackIcon": true, "failureRate": 1, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showPreview": true, "variableReplacements": [], "notallowed": {"partialCredit": 0, "showStrings": false, "message": "Input your answer in the form $(x+a)^2+b$.
", "strings": ["x^2", "x*x", "x x", "x(", "x*("]}, "customName": "", "scripts": {}, "checkingAccuracy": 0.001, "answerSimplification": "std", "unitTests": [], "musthave": {"partialCredit": 0, "showStrings": false, "message": "please input in the form $(x+a)^2+b$
", "strings": ["(", ")", "^"]}, "vsetRange": [0, 1], "vsetRangePoints": 5}], "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true}, {"type": "gapfill", "sortAnswers": false, "showCorrectAnswer": true, "useCustomName": false, "unitTests": [], "prompt": "$\\simplify{{q[3]}} = $ [[0]]
", "customName": "", "adaptiveMarkingPenalty": 0, "scripts": {}, "variableReplacements": [], "customMarkingAlgorithm": "", "marks": 0, "showFeedbackIcon": true, "gaps": [{"type": "jme", "answer": "{ans[3]}", "showCorrectAnswer": true, "useCustomName": false, "valuegenerators": [{"value": "", "name": "y"}], "checkVariableNames": false, "adaptiveMarkingPenalty": 0, "checkingType": "absdiff", "customMarkingAlgorithm": "", "marks": "1", "showFeedbackIcon": true, "failureRate": 1, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showPreview": true, "variableReplacements": [], "notallowed": {"partialCredit": 0, "showStrings": false, "message": "Input your answer in the form $(x+a)^2+b$.
", "strings": ["x^2", "x*x", "x x", "x(", "x*("]}, "customName": "", "scripts": {}, "checkingAccuracy": 0.001, "answerSimplification": "std", "unitTests": [], "musthave": {"partialCredit": 0, "showStrings": false, "message": "please input in the form $(x+a)^2+b$
", "strings": ["(", ")", "^"]}, "vsetRange": [0, 1], "vsetRangePoints": 5}], "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true}, {"type": "gapfill", "sortAnswers": false, "showCorrectAnswer": true, "useCustomName": false, "unitTests": [], "prompt": "$\\simplify{{q[4]}} = $ [[0]]
", "customName": "", "adaptiveMarkingPenalty": 0, "scripts": {}, "variableReplacements": [], "customMarkingAlgorithm": "", "marks": 0, "showFeedbackIcon": true, "gaps": [{"type": "jme", "answer": "{ans[4]}", "showCorrectAnswer": true, "useCustomName": false, "valuegenerators": [{"value": "", "name": "z"}], "checkVariableNames": false, "adaptiveMarkingPenalty": 0, "checkingType": "absdiff", "customMarkingAlgorithm": "", "marks": "1", "showFeedbackIcon": true, "failureRate": 1, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showPreview": true, "variableReplacements": [], "notallowed": {"partialCredit": 0, "showStrings": false, "message": "Input your answer in the form $(x+a)^2+b$.
", "strings": ["x^2", "x*x", "x x", "x(", "x*("]}, "customName": "", "scripts": {}, "checkingAccuracy": 0.001, "answerSimplification": "std", "unitTests": [], "musthave": {"partialCredit": 0, "showStrings": false, "message": "please input in the form $(x+a)^2+b$
", "strings": ["(", ")", "^"]}, "vsetRange": [0, 1], "vsetRangePoints": 5}], "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true}], "name": "Algebra: Completing the square", "variables": {"a": {"name": "a", "description": "", "definition": "[random(1..5),\n random(1..5)*-1,\n random(-5..5)*random(-1..1#2),\n random(6..9)*random(-1..1#2),\n random(6..9)*random(-1..1#2)]", "group": "Ungrouped variables", "templateType": "anything"}, "vari": {"name": "vari", "description": "", "definition": "shuffle(['c','d','t','y','z','r'])", "group": "Ungrouped variables", "templateType": "anything"}, "ans": {"name": "ans", "description": "", "definition": "map(expression('({vari[j]}+{a[j]})^2+{b[j]}'),j,0..4)", "group": "Ungrouped variables", "templateType": "anything"}, "b": {"name": "b", "description": "", "definition": "shuffle([random(11..25), \n random(11..25),\n random(-25..-11),\n random(-25..-11),\n random(-25..-11)\n ])", "group": "Ungrouped variables", "templateType": "anything"}, "test": {"name": "test", "description": "", "definition": "ans[0]", "group": "Ungrouped variables", "templateType": "anything"}, "q": {"name": "q", "description": "", "definition": "map(expression('{vari[j]}^2+{2*a[j]}*{vari[j]}+ {a[j]^2+b[j]}'),j,0..4)", "group": "Ungrouped variables", "templateType": "anything"}, "test2": {"name": "test2", "description": "", "definition": "q[0]", "group": "Ungrouped variables", "templateType": "anything"}}, "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"description": "Several quadratics are given and students are asked to complete the square.
", "licence": "Creative Commons Attribution 4.0 International"}, "variable_groups": [], "tags": [], "statement": "Carry out the `completing the square' method on the following quadratic expressions.
", "extensions": [], "advice": "See 2.3 and 2.5 for background and examples
", "ungrouped_variables": ["a", "b", "q", "ans", "test", "test2", "vari"], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "preamble": {"css": "", "js": ""}, "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}]}]}], "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}]}