// Numbas version: exam_results_page_options {"name": "1.2.2.3 Simplify expression with indices", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "1.2.2.3 Simplify expression with indices", "tags": [], "metadata": {"description": "

Simplify n1.v^k1.(n2.v^k2), where n1, n2 are positive integers, v is a random letter variable, and k1 and k2 are nonzero integers.

\n

The answer should be expressed as n.v^k

\n

Part of HELM Book 1.2

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

Simplify $\\var{c[0]}\\var{v}^\\var{idx[0]}(\\var{c[1]}\\var{v}^\\var{idx[1]})$

", "advice": "

\\[\\begin{align*}\\var{c[0]}\\var{v}^\\var{idx[0]}(\\var{c[1]}\\var{v}^\\var{idx[1]})&= \\var{c[0]}\\times\\var{c[1]}\\times\\var{ve}^{\\var{idx[0]}}\\times\\var{ve}^{\\var{idx[1]}}\\\\ &=\\var{c[0]*c[1]}\\var{ve}^{(\\var{idx[0]})+(\\var{idx[1]})}\\\\ &=\\var{expr} \\end{align*}\\]

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"v": {"name": "v", "group": "Ungrouped variables", "definition": "random(['a','b','c','d','f','g','h','k','m','n','p','q','r','s','t','u','v','w','x','y','z'])", "description": "

the variable to use

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

for display purposes in the advice.

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["v", "idx", "c", "expr", "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": "{expr}", "answerSimplification": "all", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.001", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": ["0.5", "0.6"], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "$n*$v`?^?", "partialCredit": 0, "message": "You have not fully factorised the expression.
You need to write the expression as a single number times the variable to a single power.", "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/"}]}