// Numbas version: exam_results_page_options {"name": "1.3.5. Task 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "1.3.5. Task 2", "tags": [], "metadata": {"description": "

Factorise a quadratic. Part of HELM Book 1.3

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Factorise the quadratic expression $\\var{q2expr}$

", "advice": "

$\\var{q2expr} =( \\var{ simplify(expression(q2prime +q2v+ \"+\"+q2m),\"basic\") })( \\var{ simplify(expression(q2v+\"+\"+q2n),\"basic\") })$

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"q1expr": {"name": "q1expr", "group": "question 1", "definition": "simplify(expression(\n \"x^2 + \" + (q1m+q1n) + \"x+\" + (q1m*q1n)\n),[\"basic\",\"zeroFactor\",\"zeroTerm\",\"unitFactor\"])", "description": "", "templateType": "anything", "can_override": false}, "q1m": {"name": "q1m", "group": "question 1", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}, "q1n": {"name": "q1n", "group": "question 1", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}, "q2prime": {"name": "q2prime", "group": "question 2", "definition": "random(2,3,5,7)", "description": "", "templateType": "anything", "can_override": false}, "q2m": {"name": "q2m", "group": "question 2", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}, "q2n": {"name": "q2n", "group": "question 2", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}, "q2expr": {"name": "q2expr", "group": "question 2", "definition": "simplify(expression(\n q2prime + \"*\"+q2v +\"^2 + \" + q2b + \"*\"+q2v+\"+\" + q2c\n ),[\"basic\",\"unitFactor\",\"zeroFactor\",\"zeroTerm\"])", "description": "

(px+m)(x+n) = px^2 + (m+pn)x + mn

", "templateType": "anything", "can_override": false}, "q2b": {"name": "q2b", "group": "question 2", "definition": "q2prime*q2n + q2m", "description": "", "templateType": "anything", "can_override": false}, "q2c": {"name": "q2c", "group": "question 2", "definition": "q2m*q2n", "description": "", "templateType": "anything", "can_override": false}, "alphabet": {"name": "alphabet", "group": "Ungrouped variables", "definition": "['a','b','c','d','f','g','h','k','m','n','p','q','r','s','t','u','v','w','x','y','z']", "description": "", "templateType": "anything", "can_override": false}, "q2v": {"name": "q2v", "group": "question 2", "definition": "random(alphabet)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["alphabet"], "variable_groups": [{"name": "question 1", "variables": ["q1expr", "q1m", "q1n"]}, {"name": "question 2", "variables": ["q2prime", "q2m", "q2n", "q2b", "q2c", "q2v", "q2expr"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Write $\\var{q2expr} = (\\qquad)(\\qquad)$

\n

To obtain the quadratic term $\\var{q2prime}\\var{q2v}^2$, insert $\\var{q2prime}\\var{q2v}$ and $\\var{q2v}$ in the brackets:

\n

$\\var{q2expr} = (\\var{q2prime}\\var{q2v} + \\,?\\,)(\\var{q2v}+\\,?\\,)$

\n

Next find the factor pairs of $\\var{q2c}$

\n

Use these factors in turn to find which pair, if any, gives rise to the middle term, $\\var{q2b}$, and complete the factorisation.

"}], "answer": "{q2expr}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "singleLetterVariables": true, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "((`+- $v* ?`*);a + `+- ?;b)*((`+- $v * ?`*);c + `+-?;d)", "partialCredit": 0, "message": "You have not fully factorised the expression.", "nameToCompare": ""}, "valuegenerators": []}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}