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

Remove the brackets from (na)^k, or from n(a)^kwhere n is a number and a is a variable.

\n

Part of HELM Book 1.2

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

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

", "advice": "

\\[\\var{expr}=\\var{c}\\var{ve[0]}^{\\var{idx}}\\var{ve[1]}^{\\var{idx}}\\]

\n

\\[\\var{expr}=\\var{c}^{\\var{idx}}\\var{ve[0]}^{\\var{idx}}\\]

\n

\\[\\var{expr}=\\var{c}^{\\var{idx}}\\var{ve[0]}^{\\var{idx}}\\var{ve[1]}^{\\var{idx}}\\]

\n

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"v": {"name": "v", "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}, "nv": {"name": "nv", "group": "Ungrouped variables", "definition": "random(0,1,2)", "description": "

number of variables to include.

\n

If nv=0 then 2 variables are used and the constant is not powered.

", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(2..4)", "description": "", "templateType": "anything", "can_override": false}, "expr": {"name": "expr", "group": "Ungrouped variables", "definition": "if(nv=0,\n expression(c+\"*(\"+v[0]+\"*\"+v[1]+\")^\"+idx)\n ,\n expression(\n \"(\"+c+\"*\"+v[0]+ [\"\",\"*\"+v[1]][nv-1] +\")^(\"+idx+\")\"\n )\n) ", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "if(nv=0,\n simplify(expression(c+\"*\"+v[0]+\"^\"+idx+\"*\"+v[1]+\"^\"+idx),\"all\"),\n simplify(expression(\n c+\"^\"+idx+\"*\"+v[0]+\"^\"+idx + [\"\",\"*\"+v[1]+\"^\"+idx][nv-1]\n ),\"all\")\n)", "description": "", "templateType": "anything", "can_override": false}, "ve": {"name": "ve", "group": "Ungrouped variables", "definition": "[expression(v[0]),expression(v[1])]", "description": "

for display in the advice

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["v", "nv", "c", "idx", "expr", "ans", "ve"], "variable_groups": [], "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": "{ans}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": true, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "notallowed": {"strings": ["(", ")", "You must remove the brackets."], "showStrings": false, "partialCredit": 0, "message": ""}, "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/"}]}