// Numbas version: exam_results_page_options {"name": "1.2.2. Task: Adding 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. Task: Adding Indices", "tags": [], "metadata": {"description": "

Add indices. Part of HELM Book 1.2

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

Simplify $\\var{a_name}^{\\var{i1_expr}}\\times \\var{a_name}^{\\var{i2_expr}}\\times \\var{a_name}^{\\var{i3_expr}}$

\n

(Note: to enter $x^{(y + z)}$, type x^(y+z))

", "advice": "

$\\var{a_name}^{\\var{i1_expr}}\\times \\var{a_name}^{\\var{i2_expr}}\\times \\var{a_name}^{\\var{i3_expr}} = \\var{a_name}^{\\var{i1_expr}+\\var{i2_expr}+\\var{i3_expr}} = \\var{a_ans}$

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Question a", "definition": "random(random(['a','b','c','d','e','f','g','h','k','m','n','p','q','r','s','t','w','x','y','z']),string(random(2..9)))", "description": "", "templateType": "anything", "can_override": false}, "a_name": {"name": "a_name", "group": "Question a", "definition": "expression(a)", "description": "", "templateType": "anything", "can_override": false}, "i1": {"name": "i1", "group": "Question a", "definition": "random(string(random(2..10)),random(alphabet))", "description": "", "templateType": "anything", "can_override": false}, "i2": {"name": "i2", "group": "Question a", "definition": "random(string(random(2..10)),random(alphabet))", "description": "", "templateType": "anything", "can_override": false}, "i3": {"name": "i3", "group": "Question a", "definition": "random(string(random(2..10)),random(alphabet))", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "question b", "definition": "random(random(['a','b','c','d','e','f','g','h','k','m','n','p','q','r','s','t','w','x','y','z']),string(random(2..9)))", "description": "", "templateType": "anything", "can_override": false}, "b_name": {"name": "b_name", "group": "question b", "definition": "expression(b)", "description": "", "templateType": "anything", "can_override": false}, "b_i1": {"name": "b_i1", "group": "question b", "definition": "random(string(random(2..10)),random(alphabet))", "description": "", "templateType": "anything", "can_override": false}, "b_i2": {"name": "b_i2", "group": "question b", "definition": "random(string(random(2..10)),random(alphabet))", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "question c", "definition": "random(random(['a','b','c','d','e','f','g','h','k','m','n','p','q','r','s','t','w','x','y','z']),string(random(2..9)))", "description": "", "templateType": "anything", "can_override": false}, "c_name": {"name": "c_name", "group": "question c", "definition": "expression(c)", "description": "", "templateType": "anything", "can_override": false}, "c_i1": {"name": "c_i1", "group": "question c", "definition": "random(string(random(2..10)),random(alphabet))", "description": "", "templateType": "anything", "can_override": false}, "c_i2": {"name": "c_i2", "group": "question c", "definition": "random(string(random(2..10)),random(alphabet))", "description": "", "templateType": "anything", "can_override": false}, "ex1_base": {"name": "ex1_base", "group": "Exercises", "definition": "[random(string(random(2..29)),random(alphabet)),\n random(string(random(2..29)),random(alphabet)),\n random(string(random(2..29)),random(alphabet))]", "description": "", "templateType": "anything", "can_override": false}, "ex1_idx": {"name": "ex1_idx", "group": "Exercises", "definition": "[random(random(-10..-2),random(2..10)),\n random(random(-10..-2),random(2..10)),\n random(random(-10..-2),random(2..10)),\n random(random(-10..-2),random(2..10)),\n random(random(-10..-2),random(2..10)),\n random(random(-10..-2),random(2..10))]", "description": "", "templateType": "anything", "can_override": false}, "alphabet": {"name": "alphabet", "group": "Ungrouped variables", "definition": "['a','b','k','m','n','w','x','y','z']", "description": "", "templateType": "anything", "can_override": false}, "ex1_base_expr": {"name": "ex1_base_expr", "group": "Exercises", "definition": "[expression(ex1_base[0]),expression(ex1_base[1]),expression(ex1_base[2])]", "description": "", "templateType": "anything", "can_override": false}, "c_i1_expr": {"name": "c_i1_expr", "group": "question c", "definition": "expression(c_i1)", "description": "", "templateType": "anything", "can_override": false}, "c_i2_expr": {"name": "c_i2_expr", "group": "question c", "definition": "expression(c_i2)", "description": "", "templateType": "anything", "can_override": false}, "c_ans": {"name": "c_ans", "group": "question c", "definition": "simplify(expression(c+\"^\"+\"(\"+c_i1 + \"*\" + c_i2+\")\"),[\"basic\",\"collectNumbers\"])", "description": "", "templateType": "anything", "can_override": false}, "i1_expr": {"name": "i1_expr", "group": "Question a", "definition": "expression(i1)", "description": "", "templateType": "anything", "can_override": false}, "i2_expr": {"name": "i2_expr", "group": "Question a", "definition": "expression(i2)", "description": "", "templateType": "anything", "can_override": false}, "i3_expr": {"name": "i3_expr", "group": "Question a", "definition": "expression(i3)", "description": "", "templateType": "anything", "can_override": false}, "b_i1_expr": {"name": "b_i1_expr", "group": "question b", "definition": "expression(b_i1)", "description": "", "templateType": "anything", "can_override": false}, "b_i2_expr": {"name": "b_i2_expr", "group": "question b", "definition": "expression(b_i2)", "description": "", "templateType": "anything", "can_override": false}, "b_ans": {"name": "b_ans", "group": "question b", "definition": "simplify(expression(b+\"^\"+\"(\"+b_i1 + \"-\" + b_i2+\")\"),[\"basic\",\"collectNumbers\"])", "description": "", "templateType": "anything", "can_override": false}, "a_ans": {"name": "a_ans", "group": "Question a", "definition": "simplify(expression(a+\"^\"+\"(\"+i1 + \"+\" + i2 + \"+\" + i3 +\")\"),[\"basic\",\"collectNumbers\"])", "description": "", "templateType": "anything", "can_override": false}, "ans1c": {"name": "ans1c", "group": "Exercises", "definition": "expression(ex1_base[2] + \"^\" + string(ex1_idx[4]*ex1_idx[5]))", "description": "", "templateType": "anything", "can_override": false}, "ans1b": {"name": "ans1b", "group": "Exercises", "definition": "expression(ex1_base[1] + \"^\" + string(ex1_idx[2]-ex1_idx[3]))", "description": "", "templateType": "anything", "can_override": false}, "ans1a": {"name": "ans1a", "group": "Exercises", "definition": "expression(ex1_base[0] + \"^\" + string(ex1_idx[0]+ex1_idx[1]))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["alphabet"], "variable_groups": [{"name": "question c", "variables": ["c", "c_ans", "c_i1", "c_i1_expr", "c_i2", "c_i2_expr", "c_name"]}, {"name": "Exercises", "variables": ["ex1_base", "ex1_idx", "ex1_base_expr", "ans1c", "ans1b", "ans1a"]}, {"name": "Question a", "variables": ["a", "a_name", "i1", "i2", "i3", "i1_expr", "i2_expr", "i3_expr", "a_ans"]}, {"name": "question b", "variables": ["b", "b_name", "b_i1", "b_i2", "b_i1_expr", "b_i2_expr", "b_ans"]}], "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": "

All quantities have the same base. To multiply the quantities together, the indices are added.

"}], "answer": "{a_ans}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "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/"}]}