// Numbas version: exam_results_page_options {"name": "Multiplication in Rect. Form", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Multiplication in Rect. Form", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Simplify the following expression and write your answer in rectangular form. (input: a+bi, with a and b real numbers)

", "advice": "", "rulesets": {}, "extensions": [], "variables": {"re_a": {"name": "re_a", "group": "Ungrouped variables", "definition": "random(-10 .. 10#1)", "description": "", "templateType": "randrange"}, "im_a": {"name": "im_a", "group": "Ungrouped variables", "definition": "random(-10 .. 10#1)", "description": "", "templateType": "randrange"}, "re_b": {"name": "re_b", "group": "Ungrouped variables", "definition": "random(-10 .. 10#1)", "description": "", "templateType": "randrange"}, "im_b": {"name": "im_b", "group": "Ungrouped variables", "definition": "random(-10 .. 10#1)", "description": "", "templateType": "randrange"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["re_a", "im_a", "re_b", "im_b"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": false, "showFeedbackIcon": false, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

$\\simplify[basic]{ z=({{re_a}}+{{im_a}}i)({{re_b}}+{{im_b}}i) }$

", "answer": "{re_a}*{re_b}-{im_a}*{im_b}+i({re_a}{im_b}+{re_b}{im_a})", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "valuegenerators": []}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Kariane Ouellet", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4505/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Kariane Ouellet", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4505/"}]}