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

Remove the brackets from algebraic expressions. Part of HELM Book 1.3

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

Remove the brackets from $\\var{q2expr}$.

", "advice": "

$\\var{q2expr}=\\var{q2ans}$

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"alphabet": {"name": "alphabet", "group": "Ungrouped variables", "definition": "shuffle(['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}, "q2expr": {"name": "q2expr", "group": "question 2", "definition": "simplify(\nexpression(\n q2consts[0] + \"*\" + q2var + \"*(\" + q2consts[1] + \"*\" + alphabet[2] + \"+\" + q2consts[2] + \"*\" + alphabet[3] + \")\"\n),[\"all\"])", "description": "", "templateType": "anything", "can_override": false}, "q2consts": {"name": "q2consts", "group": "question 2", "definition": "repeat(random(-9..9 except [-1,0,1]),3)", "description": "", "templateType": "anything", "can_override": false}, "q2var": {"name": "q2var", "group": "question 2", "definition": "random(alphabet[2],alphabet[3])", "description": "", "templateType": "anything", "can_override": false}, "q2ans": {"name": "q2ans", "group": "question 2", "definition": "simplify(\nexpression(\n q2consts[0] + \"*\" + q2consts[1] + \"*\" + q2var + \"*\" + alphabet[2] + \"+\" + \n q2consts[0] + \"*\" + q2consts[2] + \"*\" + q2var + \"*\" + alphabet[3]\n ),[\"all\",\"!noLeadingMinus\"])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "if(q2consts[0]>0,q2consts[1]<0,q2consts[1]>-10000)", "maxRuns": 100}, "ungrouped_variables": ["alphabet"], "variable_groups": [{"name": "question 2", "variables": ["q2consts", "q2var", "q2expr", "q2ans"]}], "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, "answer": "{q2ans}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": true, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "`! m_anywhere(?*(? + ?`+))", "partialCredit": 0, "message": "", "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/"}]}