// Numbas version: finer_feedback_settings {"name": "CN03 Multiplying complex numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "CN03 Multiplying complex numbers", "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "advice": "
{Advice}
\nUse this link to find resources to help you revise complex numbers.
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"ans": {"name": "ans", "group": "Ungrouped variables", "definition": "w*z", "description": "", "templateType": "anything", "can_override": false}, "w": {"name": "w", "group": "Ungrouped variables", "definition": "IF(questiontype = \"no real\",a*i,IF(questiontype = \"normal\",a+i*b,\"N/A\"))", "description": "", "templateType": "anything", "can_override": false}, "z": {"name": "z", "group": "Ungrouped variables", "definition": "c+d*i", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}, "questiontext": {"name": "questiontext", "group": "Ungrouped variables", "definition": "IF(questiontype=\"no real\",{norealtex},{normaltex})", "description": "", "templateType": "anything", "can_override": false}, "questiontype": {"name": "questiontype", "group": "Ungrouped variables", "definition": "random(\"no real\",\"normal\")", "description": "", "templateType": "anything", "can_override": false}, "norealtex": {"name": "norealtex", "group": "Ungrouped variables", "definition": "\"$\\\\var{w}(\\\\var{z})$
\"", "description": "", "templateType": "long string", "can_override": false}, "normaltex": {"name": "normaltex", "group": "Ungrouped variables", "definition": "\"$(\\\\var{z})(\\\\var{w})$
\"", "description": "", "templateType": "long string", "can_override": false}, "Advice": {"name": "Advice", "group": "Ungrouped variables", "definition": "IF(questiontype = \"no real\",{norealadv},{normaladv})", "description": "", "templateType": "anything", "can_override": false}, "norealadv": {"name": "norealadv", "group": "Ungrouped variables", "definition": "\"Multiplying complex numbers is very much like expanding brackets. The additional detail to remember is that $i^2=-1$. So in this case:
\\n\\\\begin{align}
\\\\var{w}(\\\\var{z}) &= (\\\\var{a}i\\\\times\\\\var{c}) + \\\\var{a}i\\\\times\\\\var{d}i\\\\\\\\
&= (\\\\var{a}i\\\\times\\\\var{c}) + (\\\\var{a}\\\\times\\\\var{d}\\\\times-1)\\\\\\\\
&= \\\\var{ans}
\\\\end{align}
Multiplying complex numbers is very much like expanding brackets. The additional detail to remember is that $i^2=-1$. So in this case:
\\n\\\\begin{align}
(\\\\var{w})(\\\\var{z}) &= (\\\\var{a}\\\\times\\\\var{c}) + (\\\\var{a}\\\\times\\\\var{d}i) + (\\\\var{b}i\\\\times\\\\var{c}) + (\\\\var{b}i\\\\times\\\\var{d}i)\\\\\\\\
&= (\\\\var{a*c} + \\\\var{b*d}\\\\times-1) + (\\\\var{a*d}+\\\\var{b*c})i\\\\\\\\
&= \\\\var{ans}
\\\\end{align}
Multiply the following:
\n{questiontext}
\n[[0]]
", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Complex answer", "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": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "(`+-$n`?+`+-($n`?*i)`?)", "partialCredit": 0, "message": "", "nameToCompare": "", "warningTime": "submission"}, "valuegenerators": []}], "sortAnswers": false, "inlineCorrectAnswer": true}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "resources": []}]}], "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}]}