// Numbas version: exam_results_page_options {"name": "Distributive law: expanding one set of brackets: student types entire answer", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Distributive law: expanding one set of brackets: student types entire answer", "tags": [], "metadata": {"description": "

Basically expand an expression like \"5y(-2z+3)\" where the student types answer into a single gap.

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

The expression in front of the bracket is multiplying the bracketed term, that is, each term in the brackets.

\n

That is

\n

$\\begin{align*}\\simplify{{a}*{expression(letters[0])}}\\left(\\simplify{{b}*{expression(letters[1])}+{c}}\\right)&=\\simplify[!collectNumbers, !constantsFirst]{{a}*{expression(letters[0])}*{b}*{expression(letters[1])}+{a}*{expression(letters[0])}*{c}}\\\\&=\\simplify{{a}*{expression(letters[0])}*{b}*{expression(letters[1])}+{a}*{expression(letters[0])}*{c}}\\end{align*}$

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"b": {"name": "b", "group": "Ungrouped variables", "definition": "numbers[1]", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "numbers[0]", "description": "", "templateType": "anything", "can_override": false}, "letters": {"name": "letters", "group": "Ungrouped variables", "definition": "shuffle(['m','n','p','q','r','t','u','v','w','x','y','z'])[0..2]", "description": "", "templateType": "anything", "can_override": false}, "numbers": {"name": "numbers", "group": "Ungrouped variables", "definition": "shuffle(-10..10 except -1..1)[0..3]", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "numbers[2]", "description": "", "templateType": "anything", "can_override": false}, "aa": {"name": "aa", "group": "Ungrouped variables", "definition": "a", "description": "", "templateType": "anything", "can_override": false}, "bb": {"name": "bb", "group": "Ungrouped variables", "definition": "b", "description": "", "templateType": "anything", "can_override": false}, "cc": {"name": "cc", "group": "Ungrouped variables", "definition": "c", "description": "", "templateType": "anything", "can_override": false}, "l": {"name": "l", "group": "Ungrouped variables", "definition": "letters", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "numbers", "description": "", "templateType": "anything", "can_override": false}, "absc": {"name": "absc", "group": "Ungrouped variables", "definition": "abs(c)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["b", "a", "letters", "numbers", "c", "absc", "aa", "bb", "cc", "l", "n"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

Expanding $\\simplify{{a}*{expression(letters[0])}}\\left(\\simplify{{b}*{expression(letters[1])}+{c}}\\right)$ gives [[0]].

", "gaps": [{"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": "{a*b}*{expression(letters[0])}*{expression(letters[1])}+{a*c}*{expression(letters[0])}", "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": ["(", ")"], "showStrings": true, "partialCredit": 0, "message": "You need to expand using the distributive law so there is no need for brackets"}, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}