// Numbas version: finer_feedback_settings {"name": "Quadratic Factorisation and hints", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"solmin": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "vector([min(-d[0]/c[0],-b[0]/a[0])]+[min(-d[1]/c[1],-b[1]/a[1])]+[min(-d[2]/c[2],-b[2]/a[2])]+[min(-d[3]/c[3],-b[3]/a[3])]+[min(-d[4]/c[4],-b[4]/a[4])])", "name": "solmin"}, "a": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "vector([1]+[random(2..4)]+[1]+[1]+[random(3..4)])", "name": "a"}, "c": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "vector([1]+[1]+[1]+[1]+[1])", "name": "c"}, "solmax": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "vector([max(-d[0]/c[0],-b[0]/a[0])]+[max(-d[1]/c[1],-b[1]/a[1])]+[max(-d[2]/c[2],-b[2]/a[2])]+[max(-d[3]/c[3],-b[3]/a[3])]+[max(-d[4]/c[4],-b[4]/a[4])])", "name": "solmax"}, "d": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "vector([random(1..3)]+[random(2..3)]+[random(1..3)]+[random(-2..-4)]+[random(3..6)])", "name": "d"}, "b": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "vector([random(1..5)] + [random(1..5)] + [random(-1..-5)] + [random(-1..-5)] + [random(2..5)] )", "name": "b"}}, "extensions": [], "variable_groups": [], "advice": "", "metadata": {"description": "
Several quadratics are given and students are asked to complete the square.
", "licence": "Creative Commons Attribution 4.0 International"}, "preamble": {"js": "", "css": ""}, "functions": {}, "tags": [], "name": "Quadratic Factorisation and hints", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "parts": [{"type": "gapfill", "scripts": {}, "showCorrectAnswer": true, "prompt": "Factorise $\\simplify{{a[0]*c[0]}x^2+{a[0]*d[0]+b[0]*c[0]}x+ {b[0]*d[0]}}$. [[0]]
", "marks": 0, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"answersimplification": "std", "variableReplacements": [], "vsetrange": [0, 1], "musthave": {"partialCredit": 0, "strings": [")("], "message": "", "showStrings": false}, "marks": "1", "answer": "({a[0]}x+{b[0]})({c[0]}x+{d[0]})", "showCorrectAnswer": true, "expectedvariablenames": [], "notallowed": {"partialCredit": 0, "strings": ["x^2", "x*x", "x x", "x(", "x*("], "message": "", "showStrings": false}, "type": "jme", "scripts": {}, "vsetrangepoints": 5, "checkingtype": "absdiff", "showpreview": true, "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.0001, "showFeedbackIcon": true}], "showFeedbackIcon": true}, {"type": "gapfill", "scripts": {}, "showCorrectAnswer": true, "prompt": "Factorise $\\simplify{{a[1]*c[1]}x^2+{a[1]*d[1]+b[1]*c[1]}x+ {b[1]*d[1]}}$. [[0]]
", "marks": 0, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"answersimplification": "std", "variableReplacements": [], "vsetrange": [0, 1], "musthave": {"partialCredit": 0, "strings": [")("], "message": "", "showStrings": false}, "marks": "1", "answer": "({a[1]}x+{b[1]})({c[1]}x+{d[1]})", "showCorrectAnswer": true, "expectedvariablenames": [], "notallowed": {"partialCredit": 0, "strings": ["x^2", "x*x", "x x", "x(", "x*("], "message": "", "showStrings": false}, "type": "jme", "scripts": {}, "vsetrangepoints": 5, "checkingtype": "absdiff", "showpreview": true, "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.0001, "showFeedbackIcon": true}], "showFeedbackIcon": true}, {"type": "gapfill", "scripts": {}, "showCorrectAnswer": true, "prompt": "Factorise $\\simplify{{a[2]*c[2]}x^2+{a[2]*d[2]+b[2]*c[2]}x+ {b[2]*d[2]}}$. [[0]]
", "marks": 0, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"answersimplification": "std", "variableReplacements": [], "vsetrange": [0, 1], "musthave": {"partialCredit": 0, "strings": [")("], "message": "", "showStrings": false}, "marks": "1", "answer": "({a[2]}x+{b[2]})({c[2]}x+{d[2]})", "showCorrectAnswer": true, "expectedvariablenames": [], "notallowed": {"partialCredit": 0, "strings": ["x^2", "x*x", "x x", "x(", "x*("], "message": "", "showStrings": false}, "type": "jme", "scripts": {}, "vsetrangepoints": 5, "checkingtype": "absdiff", "showpreview": true, "checkvariablenames": false, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.0001, "showFeedbackIcon": true}], "showFeedbackIcon": true}], "statement": "Factorise the following quadratics into the form (ax+b)(cx+d). Ensure that you always write out two pairs of brackets.
", "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "d", "solmax", "solmin"], "type": "question", "contributors": [{"name": "Owen Jepps", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1195/"}]}]}], "contributors": [{"name": "Owen Jepps", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1195/"}]}