// Numbas version: exam_results_page_options {"name": "WM104 in-class assessment: part (i) - complex numbers", "metadata": {"description": "

Content assessed : complex arithmetic; argument and modulus of complex numbers; de Moivre's theorem.

This complex numbers in-class assesment counts 20% towards your final maths grade for WM104.

Note that although questions are randomised for each student, all questions test the same learning outcomes at the same level for each student.  

If you have any questions during the test, please put up your hand to alert the invigilator that you need attention. 

", "licence": "Creative Commons Attribution 4.0 International"}, "duration": 1500, "percentPass": "40", "showQuestionGroupNames": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questions": [{"name": "Shaheen's copy of Arithmetics of complex numbers II", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Shaheen Charlwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1819/"}], "tags": [], "metadata": {"description": "

Multiplication and addition of complex numbers. Four parts.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Find the following complex numbers in the form $a+bi\\;$ where $a$ and $b$ are real.

\n

Input all numbers as fractions or integers (whole numbers). Also do not include brackets in your answers.

", "advice": "

a)

\n

The solution is given by:

\n


$\\simplify[std]{{e6*i}}(\\simplify[std]{{a}})=\\simplify[std]{{a*e6*i}}$

\n


b)

\n

$\\simplify[std]{{a}*{z4}={a*z4}}$

\n


c)
\\[ \\begin{eqnarray*} \\simplify[std,!otherNumbers]{{a}*({a3} + {b3} * i + {c3} * i ^ 2 + {d3} * i ^ 3)}&=&\\simplify[std]{{a}*{a3 + b3 * i + c3 * i ^ 2 + d3 * i ^ 3}}\\\\ &=&\\simplify[std]{{a*(a3 + b3 * i + c3 * i ^ 2 + d3 * i ^ 3)}} \\end{eqnarray*} \\]
d)

\n

This can be calculated by using the formula twice, firstly to multiply out the first two sets of parentheses, 

\n

and then to multiply the result of that calculation by the third set of parentheses.

\n

So we obtain:
\\[ \\begin{eqnarray*} (\\var{a})(\\var{z1})(\\var{z3})&=&((\\var{a})(\\var{z1}))(\\var{z3})\\\\ &=&(\\var{a*(z1)})(\\var{z3})\\\\ &=&\\var{a*(z1)*(z3)} \\end{eqnarray*} \\]

", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "s1*random(1..9)+s2*random(1..9)*i", "description": "", "templateType": "anything"}, "s1": {"name": "s1", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "s4": {"name": "s4", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "z1": {"name": "z1", "group": "Ungrouped variables", "definition": "s3*random(1..9)+f6*i", "description": "", "templateType": "anything"}, "d3": {"name": "d3", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "description": "", "templateType": "anything"}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "description": "", "templateType": "anything"}, "b3": {"name": "b3", "group": "Ungrouped variables", "definition": "s2*random(1..9)", "description": "", "templateType": "anything"}, "s5": {"name": "s5", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "z3": {"name": "z3", "group": "Ungrouped variables", "definition": "s6*random(1..9)+e6*i", "description": "", "templateType": "anything"}, "e6": {"name": "e6", "group": "Ungrouped variables", "definition": "s5*random(3..9)", "description": "", "templateType": "anything"}, "z4": {"name": "z4", "group": "Ungrouped variables", "definition": "s6*s2*random(1..9)+s3*s5*random(1..9)*i", "description": "", "templateType": "anything"}, "f6": {"name": "f6", "group": "Ungrouped variables", "definition": "s6*random(1..9)", "description": "", "templateType": "anything"}, "d6": {"name": "d6", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "description": "", "templateType": "anything"}, "c3": {"name": "c3", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "description": "", "templateType": "anything"}, "s3": {"name": "s3", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "z2": {"name": "z2", "group": "Ungrouped variables", "definition": "s2*random(1..9)+d6*i", "description": "", "templateType": "anything"}, "s2": {"name": "s2", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "s6": {"name": "s6", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "f6", "s3", "s2", "s1", "d3", "s6", "s5", "s4", "c3", "a3", "b3", "d6", "e6", "z4", "z1", "z2", "z3"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

$\\var{e6*i}(\\simplify[std]{{a}})\\;=\\;$[[0]].

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{a*e6*i}", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "notallowed": {"strings": [".", ")", "("], "showStrings": false, "partialCredit": 0, "message": "

Input all numbers as fractions or integers. Also do not include brackets in your answers.

"}, "valuegenerators": []}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

$(\\simplify[std]{{a}})(\\simplify[std]{{z4}})\\;=\\;$[[0]].

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "({a*z4})", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "notallowed": {"strings": [".", ")", "("], "showStrings": false, "partialCredit": 0, "message": "

Input all numbers as fractions or integers. Also do not include brackets in your answers.

"}, "valuegenerators": []}], "sortAnswers": false}]}, {"name": "Inverse and division of complex numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Shaheen Charlwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1819/"}], "tags": [], "metadata": {"description": "

Two parts.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Express the following in the form $a+bi$.

\n

Input $a$ and $b$ as fractions or integers (whole numbers) and not as decimals.

", "advice": "\n \n \n

Division of two complex numbers can be performed by mutiplying both the numerator and denominator by the conjugate of the denominator.
Suppose that \\[ z = \\frac{a+bi}{c+di},\\;\\; c+di \\neq 0\\] then we have:
\\[\\begin{eqnarray*}\n \n z&=&\\frac{a+bi}{c+di}\\\\\n \n &=&\\frac{(a+bi)(c-di)}{(c+di)(c-di)}\\\\\n \n &=&\\frac{(ac+bd)+(bc-ad)i}{c^2+d^2}\\\\\n \n &=&\\frac{ac+bd}{c^2+d^2}+\\frac{bc-ad}{c^2+d^2}i\n \n \\end{eqnarray*}\n \n \\]
Although this is a formula for the inverse, the best way to find these complex numbers is to remember to multiply top and bottom by the conjugate of the denominator.
(a)
\\[\\begin{eqnarray*}\\simplify[std]{{c1}/{z1}} &=&\\simplify[std]{({c1}*{conj(z1)})/({z1}*{conj(z1)})}\\\\\n \n &=&\\simplify[std]{{c1*conj(z1)}/{abs(z1)^2}}\\\\\n \n &=& \\simplify[std]{{c1*re(z1)}/{abs(z1)^2}-{c1*im(z1)}/{abs(z1)^2}*i}\n \n \\end{eqnarray*} \\]
(b)
\\[\\begin{eqnarray*}\\simplify[std]{{c2}/{z2}} &=&\\simplify[std]{({c2}*{conj(z2)})/({z2}*{conj(z2)})}\\\\\n \n &=&\\simplify[std]{{c2*conj(z2)}/{abs(z2)^2}}\\\\\n \n &=& \\simplify[std]{{c2*re(z2)}/{abs(z2)^2}-{c2*im(z2)}/{abs(z2)^2}*i}\n \n \\end{eqnarray*} \\]
(c)
\\[\\begin{eqnarray*}\\simplify[std]{{z1}/{z3}} &=&\\simplify[std]{({z1}*{conj(z3)})/({z3}*{conj(z3)})}\\\\\n \n &=&\\simplify[std]{{z1*conj(z3)}/{abs(z3)^2}}\\\\\n \n &=& \\simplify[std]{{re(z1*conj(z3))}/{abs(z3)^2}+{im(z1*conj(z3))}/{abs(z3)^2}*i}\n \n \\end{eqnarray*} \\]
(d)
\\[\\begin{eqnarray*}\\simplify[std]{{z3}/{z2}} &=&\\simplify[std]{({z3}*{conj(z2)})/({z2}*{conj(z2)})}\\\\\n \n &=&\\simplify[std]{{z3*conj(z2)}/{abs(z2)^2}}\\\\\n \n &=& \\simplify[std]{{re(z3*conj(z2))}/{abs(z2)^2}+{im(z3*conj(z2))}/{abs(z2)^2}*i}\n \n \\end{eqnarray*} \\]

\n \n ", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus", "!collectLikeFractions"]}, "variables": {"s1": {"name": "s1", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "rz3": {"name": "rz3", "group": "Ungrouped variables", "definition": "if(a3=re(z1),a3+random(1,-1),a3)", "description": "", "templateType": "anything"}, "c1": {"name": "c1", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "description": "", "templateType": "anything"}, "z1": {"name": "z1", "group": "Ungrouped variables", "definition": "s2*random(1..9)+s1*random(1..9)*i", "description": "", "templateType": "anything"}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "description": "", "templateType": "anything"}, "s3": {"name": "s3", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "z2": {"name": "z2", "group": "Ungrouped variables", "definition": "re(z1)+s2*random(1,2)+s4*random(1..9)*i", "description": "", "templateType": "anything"}, "z3": {"name": "z3", "group": "Ungrouped variables", "definition": "rz3+s1*random(1..9)*i", "description": "", "templateType": "anything"}, "s2": {"name": "s2", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "s4": {"name": "s4", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "c2": {"name": "c2", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["s3", "s2", "s1", "s4", "a3", "rz3", "c2", "c1", "z1", "z2", "z3"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

$\\displaystyle \\simplify[std]{{c1}/{z1}} = $ [[0]]

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{c1*re(z1)}/{abs(z1)^2}-{c1*im(z1)}/{abs(z1)^2}*i", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "mustmatchpattern": {"pattern": "`+-((integer:$n/integer:$n`?))`? + ((`+-integer:$n`?/integer:$n`?)*i `| `+-i)`?", "partialCredit": 0, "message": "Your answer is not in the form $a+bi$.", "nameToCompare": ""}, "valuegenerators": []}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

$\\displaystyle \\simplify[std]{{z1}/{z3}}\\;=\\;$[[0]].

\n

Do not include brackets in your answer.

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{re(z1*conj(z3))}/{abs(z3)^2}+{im(z1*conj(z3))}/{abs(z3)^2}*i", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "mustmatchpattern": {"pattern": "`+-((integer:$n/integer:$n`?))`? + ((`+-integer:$n`?/integer:$n`?)*i `| `+-i)`?", "partialCredit": 0, "message": "Your answer is not in the form $a+bi$.", "nameToCompare": ""}, "valuegenerators": []}], "sortAnswers": false}]}, {"name": "Shaheen's copy of Arithmetics of complex numbers IV", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Shaheen Charlwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1819/"}], "variable_groups": [], "variables": {"rz3": {"group": "Ungrouped variables", "templateType": "anything", "definition": "if(a3=re(z1),a3+random(1,-1),a3)", "description": "", "name": "rz3"}, "s1": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(1,-1)", "description": "", "name": "s1"}, "c1": {"group": "Ungrouped variables", "templateType": "anything", "definition": "s3*random(1..9)", "description": "", "name": "c1"}, "z1": {"group": "Ungrouped variables", "templateType": "anything", "definition": "s2*random(1..9)+s1*random(1..9)*i", "description": "", "name": "z1"}, "a3": {"group": "Ungrouped variables", "templateType": "anything", "definition": "s3*random(1..9)", "description": "", "name": "a3"}, "s3": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(1,-1)", "description": "", "name": "s3"}, "z2": {"group": "Ungrouped variables", "templateType": "anything", "definition": "re(z1)+s2*random(1,2)+s4*random(1..9)*i", "description": "", "name": "z2"}, "z3": {"group": "Ungrouped variables", "templateType": "anything", "definition": "rz3+s1*random(1..9)*i", "description": "", "name": "z3"}, "s2": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(1,-1)", "description": "", "name": "s2"}, "s4": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(1,-1)", "description": "", "name": "s4"}, "c2": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(1..5)", "description": "", "name": "c2"}}, "ungrouped_variables": ["s3", "s2", "s1", "s4", "a3", "rz3", "c2", "c1", "z1", "z2", "z3"], "functions": {}, "parts": [{"prompt": "\n

\\[\\displaystyle z=\\simplify[!collectNumbers]{({z3}*{z2})/{z1}}\\]

\n

$z=\\;\\;$[[0]].

\n ", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "useCustomName": false, "customName": "", "unitTests": [], "showFeedbackIcon": true, "scripts": {}, "gaps": [{"answer": "{re(conj(z1)*z3*z2)}/{abs(z1)^2}+{im(conj(z1)*z3*z2)}/{abs(z1)^2}*i", "mustmatchpattern": {"message": "Your answer is not in the form $a+bi$.", "pattern": "`+-((integer:$n/integer:$n`?))`? + ((`+-integer:$n`?/integer:$n`?)*i `| `+-i)`?", "partialCredit": 0, "nameToCompare": ""}, "vsetRangePoints": 5, "useCustomName": false, "checkingType": "absdiff", "valuegenerators": [], "vsetRange": [0, 1], "showFeedbackIcon": true, "type": "jme", "variableReplacementStrategy": "originalfirst", "checkingAccuracy": 0.001, "variableReplacements": [], "failureRate": 1, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "showPreview": true, "customName": "", "checkVariableNames": false, "unitTests": [], "scripts": {}, "answerSimplification": "std", "showCorrectAnswer": true, "marks": 1}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "marks": 0, "sortAnswers": false}, {"prompt": "\n

\\[\\displaystyle z=\\simplify[!collectNumbers]{({z2}*{z1})}(\\var{z3})^{-1}\\]

\n

$z=\\;\\;$[[0]].

\n ", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "useCustomName": false, "customName": "", "unitTests": [], "showFeedbackIcon": true, "scripts": {}, "gaps": [{"answer": "{re(conj(z3)*z1*z2)}/{abs(z3)^2}+{im(conj(z3)*z1*z2)}/{abs(z3)^2}*i", "mustmatchpattern": {"message": "Your answer is not in the form $a+bi$.", "pattern": "`+-((integer:$n/integer:$n`?))`? + ((`+-integer:$n`?/integer:$n`?)*i `| `+-i)`?", "partialCredit": 0, "nameToCompare": ""}, "vsetRangePoints": 5, "useCustomName": false, "checkingType": "absdiff", "valuegenerators": [], "vsetRange": [0, 1], "showFeedbackIcon": true, "type": "jme", "variableReplacementStrategy": "originalfirst", "checkingAccuracy": 0.001, "variableReplacements": [], "failureRate": 1, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "showPreview": true, "customName": "", "checkVariableNames": false, "unitTests": [], "scripts": {}, "answerSimplification": "std", "showCorrectAnswer": true, "marks": 1}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "marks": 0, "sortAnswers": false}], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "

Express the following complex numbers $z$ in the form $a+bi$.

\n

Input $a$ and $b$ as fractions and not as decimals.

", "tags": ["algebra of complex numbers", "checked2015", "complex arithmetic", "complex numbers", "division of complex numbers", "inverse of complex numbers", "multiplication of complex numbers", "product of complex numbers"], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus", "!collectlikefractions"]}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Composite multiplication and division of complex numbers. Two parts.

"}, "advice": "\n

a)
\\[\\begin{eqnarray*}z=\\simplify[!collectNumbers]{({z3}*{z2})/{z1}} &=&\\simplify[!collectNumbers]{({z3}*{z2}*{conj(z1)})/({z1}*{conj(z1)})}\\\\ &=&\\simplify[!collectNumbers]{({z3*z2}*{conj(z1)})/({abs(z1)^2})}\\\\ &=&\\simplify[!collectNumbers]{{z3*z2*conj(z1)}/{abs(z1)^2}}\\\\ &=& \\simplify[std]{{re(z3*z2*conj(z1))}/{abs(z1)^2}+{im(z3*z2*conj(z1))}/{abs(z1)^2}*i} \\end{eqnarray*} \\]

\n

b)
\\[\\begin{eqnarray*}z= \\simplify[!collectNumbers]{({z2}*{z1})}(\\var{z3})^{-1} &=& \\simplify[!collectNumbers]{({z2}*{z1})/{z3}}\\\\ &=&\\simplify[!collectNumbers]{({z2}*{z1}*{conj(z3)})/({z3}*{conj(z3)})}\\\\ &=&\\simplify[!collectNumbers]{({z2*z1}*{conj(z3)})/({abs(z3)^2})}\\\\ &=&\\simplify[!collectNumbers]{{z2*z1*conj(z3)}/{abs(z3)^2}}\\\\ &=& \\simplify[std]{{re(z2*z1*conj(z3))}/{abs(z3)^2}+{im(z2*z1*conj(z3))}/{abs(z3)^2}*i} \\end{eqnarray*} \\]

\n "}, {"name": "Shaheen's copy of Modulus and argument complex numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Shaheen Charlwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1819/"}], "variable_groups": [], "variables": {"b3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s8*random(1..9)", "description": "", "name": "b3"}, "s5": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=3,-1,1)", "description": "", "name": "s5"}, "arg4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arg(z4),3)", "description": "", "name": "arg4"}, "b4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "description": "", "name": "b4"}, "s7": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=2,-1,t=3,1,-1)", "description": "", "name": "s7"}, "arg2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arg(z2),3)", "description": "", "name": "arg2"}, "s8": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,1,t=4,-1,t=3,1,-1)", "description": "", "name": "s8"}, "arg3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arg(z3),3)", "description": "", "name": "arg3"}, "m4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,q1,t=2,q3,t=3,q2,q4)", "description": "", "name": "m4"}, "z3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "c2+d2*i", "description": "", "name": "z3"}, "z1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a1+b1*i", "description": "", "name": "z1"}, "z4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a3+b3*i", "description": "", "name": "z4"}, "ans3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(abs(z3),3)", "description": "", "name": "ans3"}, "a2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "description": "", "name": "a2"}, "ans1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(abs(z1),3)", "description": "", "name": "ans1"}, "b2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s5*random(1..9)", "description": "", "name": "b2"}, "ans4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(abs(z4),3)", "description": "", "name": "ans4"}, "z6": {"templateType": "anything", "group": "Ungrouped variables", "definition": "c4+d4*i", "description": "", "name": "z6"}, "m2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,q2,t=2,q1,t=3,q4,q2)", "description": "", "name": "m2"}, "q1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "'The complex number is in the first quadrant.'", "description": "", "name": "q1"}, "t": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..4)", "description": "", "name": "t"}, "s1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,1,t=4,1,-1)", "description": "", "name": "s1"}, "tol": {"templateType": "anything", "group": "Ungrouped variables", "definition": "0.001", "description": "", "name": "tol"}, "a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s1*random(2..9)", "description": "", "name": "a1"}, "c4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "if(a4=f,f+1,f)", "description": "", "name": "c4"}, "s2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,-1,t=3,-1,1)", "description": "", "name": "s2"}, "q2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "'The complex number is in the second quadrant.'", "description": "", "name": "q2"}, "m3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,q3,t=2,q4,t=3,q1,q3)", "description": "", "name": "m3"}, "d2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s7*random(1..9)", "description": "", "name": "d2"}, "n": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(3..5)", "description": "", "name": "n"}, "c2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s6*random(1..9)", "description": "", "name": "c2"}, "z5": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a4+b4*i", "description": "", "name": "z5"}, "d4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s5*random(1..9)", "description": "", "name": "d4"}, "f": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "name": "f"}, "z2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a2+b2*i", "description": "", "name": "z2"}, "b1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s2*random(3..9)", "description": "", "name": "b1"}, "m1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,q4,t=2,q2,t=3,q3,q1)", "description": "", "name": "m1"}, "q3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "'The complex number is in the third quadrant.'", "description": "", "name": "q3"}, "s4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,-1,t=4,-1,1)", "description": "", "name": "s4"}, "ans2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(abs(z2),3)", "description": "", "name": "ans2"}, "q4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "'The complex number is in the fourth quadrant.'", "description": "", "name": "q4"}, "a3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "description": "", "name": "a3"}, "a4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s8*random(1..9)", "description": "", "name": "a4"}, "s3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,1,t=2,-1,t=3,-1,1)", "description": "", "name": "s3"}, "s6": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,-1,t=4,-1,1)", "description": "", "name": "s6"}, "arg1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arg(z1),3)", "description": "", "name": "arg1"}}, "ungrouped_variables": ["ans1", "ans2", "ans3", "ans4", "b4", "b1", "b2", "b3", "d4", "d2", "q1", "q3", "q2", "q4", "s3", "s2", "s1", "s7", "s6", "s5", "s4", "m4", "m1", "z2", "m3", "arg1", "z3", "arg2", "arg3", "tol", "arg4", "m2", "a1", "a3", "s8", "a4", "z4", "z5", "z6", "z1", "c2", "c4", "f", "n", "a2", "t"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "functions": {}, "showQuestionGroupNames": false, "parts": [{"prompt": "

$|\\var{z1}|=\\;\\;$[[0]], $\\arg(\\var{z1})=\\;\\;$[[1]] radians

\n

Input both answers to 3 decimal places.

", "scripts": {}, "gaps": [{"correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "allowFractions": false, "type": "numberentry", "maxValue": "ans1+tol", "minValue": "ans1-tol", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "showPrecisionHint": false}, {"correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "allowFractions": false, "type": "numberentry", "maxValue": "arg1+tol", "minValue": "arg1-tol", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "showPrecisionHint": false}], "type": "gapfill", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0}, {"prompt": "

$|\\var{z2}|=\\;\\;$[[0]], $\\arg(\\var{z2})=\\;\\;$[[1]] radians

\n

Input both answers to 3 decimal places.

", "scripts": {}, "gaps": [{"correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "allowFractions": false, "type": "numberentry", "maxValue": "ans2+tol", "minValue": "ans2-tol", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "showPrecisionHint": false}, {"correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "allowFractions": false, "type": "numberentry", "maxValue": "arg2+tol", "minValue": "arg2-tol", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "showPrecisionHint": false}], "type": "gapfill", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0}, {"prompt": "

$|\\var{z3}|=\\;\\;$[[0]], $\\arg(\\var{z3})=\\;\\;$[[1]] radians

\n

Input both answers to 3 decimal places.

", "scripts": {}, "gaps": [{"correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "allowFractions": false, "type": "numberentry", "maxValue": "ans3+tol", "minValue": "ans3-tol", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "showPrecisionHint": false}, {"correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "allowFractions": false, "type": "numberentry", "maxValue": "arg3+tol", "minValue": "arg3-tol", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "showPrecisionHint": false}], "type": "gapfill", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0}, {"prompt": "

$|\\var{z4}|=\\;\\;$[[0]], $\\arg(\\var{z4})=\\;\\;$[[1]] radians

\n

Input both answers to 3 decimal places.

", "scripts": {}, "gaps": [{"correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "allowFractions": false, "type": "numberentry", "maxValue": "ans4+tol", "minValue": "ans4-tol", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "showPrecisionHint": false}, {"correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "allowFractions": false, "type": "numberentry", "maxValue": "arg4+tol", "minValue": "arg4-tol", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "showPrecisionHint": false}], "type": "gapfill", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0}], "statement": "

Find the modulus and argument (in radians) of the following complex numbers, where the argument lies between $-\\pi$ and $\\pi$.

\n

When calculating the argument pay particular attention to the quadrant in which the complex number lies.

\n

Input all answers to 3 decimal places.

", "tags": ["arctan", "arg", "argument", "argument of complex numbers", "checked2015", "complex number", "complex numbers", "mas1602", "MAS1602", "mod", "modulus", "modulus argument form", "modulus of complex numbers", "quadrants and complex numbers"], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "

15/7/2015:

\n

Added tags.

\n

5/07/2012:

\n

Added tags.

\n

Changed some of the grammar in the advice section.

\n

Question appears to be working correctly.

\n

The presentation in IE on using Test Run is not good.

\n

9/07/2012:

\n

Display in Advice set out properly.

\n

13/07/2009:

\n

Set new tolerance variable tol=0.001 for all numeric input.

", "licence": "Creative Commons Attribution 4.0 International", "description": "

Finding the modulus and argument (in radians) of four complex numbers; the arguments between $-\\pi$ and $\\pi$ and careful with quadrants!

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

Note that the arguments $\\theta$ of the complex numbers are in radians and have to be in the range $-\\pi < \\theta \\le \\pi$.

\n

You have to be careful with using a standard calculator when you are finding the argument of a complex number.

\n

If $z=a+bi=r(\\cos(\\theta)+i\\sin(\\theta))$ then we have:$r\\cos(\\theta)=a,\\;\\;r\\sin(\\theta)=b$ and so $\\tan(\\theta) = b/a$.

\n

Using a calculator to find the argument via $\\arctan(b/a)$ works in the range $-\\pi < \\theta \\le \\pi$ when the complex number is in the first or fourth quadrants – you get the correct value.

\n

However, The calculator gives the wrong value for complex numbers in the other quadrants.

\n

Complex number in the Second Quadrant.

\n

Since $\\arctan(b/a)$ does not distinguish between the second and fourth quadrants and the calculator gives the argument for the fourth quadrant you have to add $\\pi$ onto the calculator value.

\n

Complex number in the Third Quadrant.

\n

Since $\\arctan(b/a)$ does not distinguish between the first and third quadrants and the calculator gives the argument for the first quadrant you have to take away $\\pi$ from the calculator value.

\n

a)Modulus.

\n

\\[ \\begin{eqnarray*} |\\var{z1}|&=&\\sqrt{(\\var{a1})^2+(\\var{b1})^2}\\\\ &=& \\var{abs(z1)}\\\\ &=&\\var{ans1} \\end{eqnarray*} \\] to 3 decimal places.

\n

Argument.

\n

{m1}

\n

Hence we see that: \\[\\begin{eqnarray*} \\arg(\\var{z1}) &=& \\var{arg(z1)}\\\\ &=& \\var{arg1}\\; \\mbox{radians} \\end{eqnarray*} \\] to 3 decimal places.

\n

b)Modulus.

\n

\\[ \\begin{eqnarray*} |\\var{z2}|&=&\\sqrt{(\\var{a2})^2+(\\var{b2})^2}\\\\ &=& \\var{abs(z2)}\\\\ &=&\\var{ans2} \\end{eqnarray*} \\] to 3 decimal places.

\n

Argument.

\n

{m2}

\n

Hence we see that: \\[\\begin{eqnarray*} \\arg(\\var{z2}) &=& \\var{arg(z2)}\\\\ &=& \\var{arg2}\\; \\mbox{radians} \\end{eqnarray*} \\] to 3 decimal places.

\n

c)Modulus.

\n

\\[ \\begin{eqnarray*} |\\var{z3}|&=&\\sqrt{(\\var{c2})^2+(\\var{d2})^2}\\\\ &=& \\var{abs(z3)}\\\\ &=&\\var{ans3} \\end{eqnarray*} \\] to 3 decimal places.

\n

Argument.

\n

{m3}

\n

Hence we see that: \\[\\begin{eqnarray*} \\arg(\\var{z3}) &=& \\var{arg(z3)}\\\\ &=& \\var{arg3}\\; \\mbox{radians} \\end{eqnarray*} \\] to 3 decimal places.

\n

d)Modulus.

\n

\\[ \\begin{eqnarray*} |\\var{z4}|&=&\\sqrt{(\\var{a3})^2+(\\var{b3})^2}\\\\ &=& \\var{abs(z4)}\\\\ &=&\\var{ans4} \\end{eqnarray*} \\] to 3 decimal places.

\n

Argument.

\n

{m4}

\n

Hence we see that: \\[\\begin{eqnarray*} \\arg(\\var{z4}) &=& \\var{arg(z4)}\\\\ &=& \\var{arg4}\\; \\mbox{radians} \\end{eqnarray*} \\] to 3 decimal places.

"}, {"name": "Shaheen's copy of De Moivre's Theorem: Positive Powers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Shaheen Charlwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1819/"}], "tags": [], "metadata": {"description": "

Find modulus and argument of two complex numbers.

Then use De Moivre's Theorem to find powers of the complex numbers.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Use de Moivre's theorem to write the following complex number in the form $a+bi$.

\n

Remember that the argument of a complex numbers lies in the range $-\\pi \\lt \\theta \\le \\pi$.

\n

Important

\n

When calculating the final answer in part (iii), you must use whole number values (integers), otherwise the final answer will not be marked as correct.

", "advice": "

Given a complex number $z=r(\\cos(\\theta)+i\\sin(\\theta))$ de Moivre's theorem states that $z^n=r^n(\\cos(n\\theta)+i\\sin(n\\theta))$ for an integer power $n$.
So if we know the modulus $r$ and the argument $\\theta$ for $z$ then the theorem provides a way of calculating $z^n$.

\n

As usual, you must be careful that the argument is calculated correctly by paying attention to the quadrant of the complex plane in which the complex number lies.

\n

Also remember that for this question, arguments of complex numbers lie in the range $-\\pi \\lt \\theta \\le \\pi$.

\n

With the above in mind we can now answer the questions:

\n

a)

\n

Modulus

\n

\\[ \\begin{eqnarray*} |\\var{z1}|&=&\\sqrt{(\\var{a1})^2+(\\var{b1})^2}\\\\ &=& \\var{abs(z1)}\\\\ &=&\\var{ans1} \\end{eqnarray*} \\] to 3 decimal places.

\n

Note that $r^{\\var{n2}}=|(\\var{z1})^{\\var{n2}}| =\\var{abs(z1)}^{\\var{n2}}=\\var{abs(z1)^n2}$ which we will use in the calculation for $(\\var{z1})^{\\var{n2}}$

\n

Argument

\n

{m1}.
Hence we see that:
\\[\\begin{eqnarray*} \\arg(\\var{z1}) &=& \\var{arg(z1)}\\\\ &=& \\var{arg1}\\; \\mbox{radians} \\end{eqnarray*} \\] to 3 decimal places.

\n

We have $\\arg((\\var{z1})^{\\var{n2}})=\\var{n2}\\times \\var{arg(z1)} = \\var{n2*arg(z1)}$ radians.

\n

Hence we have \\[\\begin{eqnarray*}(\\var{z1})^{\\var{n2}} &=& \\var{abs(z1)^n2}(\\cos(\\var{n2*arg(z1)})+\\sin(\\var{n2*arg(z1)})i)\\\\ &=& \\var{abs(z1)^n2}\\cos(\\var{n2*arg(z1)})+\\var{abs(z1)^n2}\\times\\sin(\\var{n2*arg(z1)})i\\\\ &=& \\simplify[std]{{a3}+{b3}i}. \\end{eqnarray*} \\] 

\n

b)

\n

Modulus

\n

\\[ \\begin{eqnarray*} |\\var{z2}|&=&\\sqrt{(\\var{a2})^2+(\\var{b2})^2}\\\\ &=& \\var{abs(z2)}\\\\ &=&\\var{ans2} \\end{eqnarray*} \\] to 3 decimal places.

\n

Note that $r^{\\var{n4}}=|(\\var{z2})^{\\var{n4}}| =\\var{abs(z2)}^{\\var{n4}}=\\var{abs(z2)^n4}$ which we will use in the calculation for $(\\var{z2})^{\\var{n4}}$

\n

Argument

\n

{m2}.
Hence we see that:
\\[\\begin{eqnarray*} \\arg(\\var{z2}) &=& \\var{arg(z2)}\\\\ &=& \\var{arg2}\\; \\mbox{radians} \\end{eqnarray*} \\] to 3 decimal places.

\n

We have $\\arg((\\var{z2})^{\\var{n4}})=\\var{n4}\\times \\var{arg(z2)} = \\var{n4*arg(z2)}$ radians.

\n

Hence we have \\[\\begin{eqnarray*}(\\var{z2})^{\\var{n4}} &=& \\var{abs(z2)^n4}(\\cos(\\var{n4*arg(z2)})+\\sin(\\var{n4*arg(z2)})i)\\\\ &=& \\var{abs(z2)^n4}\\cos(\\var{n4*arg(z2)})+\\var{abs(z2)^n4}\\times\\sin(\\var{n4*arg(z2)})i\\\\ &=& \\simplify[std]{{a4}+{b4}i}. \\end{eqnarray*} \\] 

\n

 

", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "variables": {"c4": {"name": "c4", "group": "Ungrouped variables", "definition": "if(a4=f,f+1,f)", "description": "", "templateType": "anything"}, "b3": {"name": "b3", "group": "Ungrouped variables", "definition": "precround(tb3,3)", "description": "", "templateType": "anything"}, "s5": {"name": "s5", "group": "Ungrouped variables", "definition": "switch(t=3,-1,1)", "description": "", "templateType": "anything"}, "arg4": {"name": "arg4", "group": "Ungrouped variables", "definition": "precround(arg(z4),3)", "description": "", "templateType": "anything"}, "b4": {"name": "b4", "group": "Ungrouped variables", "definition": "precround(tb4,3)", "description": "", "templateType": "anything"}, "n4": {"name": "n4", "group": "Ungrouped variables", "definition": "random(7..10)", "description": "", "templateType": "anything"}, "s7": {"name": "s7", "group": "Ungrouped variables", "definition": "switch(t=2,-1,t=3,1,-1)", "description": "", "templateType": "anything"}, "arg2": {"name": "arg2", "group": "Ungrouped variables", "definition": "precround(arg(z2),3)", "description": "", "templateType": "anything"}, "m1": {"name": "m1", "group": "Ungrouped variables", "definition": "switch(t=1,q4,t=2,q2,t=3,q3,q1)", "description": "", "templateType": "anything"}, "arg3": {"name": "arg3", "group": "Ungrouped variables", "definition": "precround(arg(z3),3)", "description": "", "templateType": "anything"}, "q4": {"name": "q4", "group": "Ungrouped variables", "definition": "'The complex number is in the fourth quadrant.'", "description": "", "templateType": "anything"}, "ans1": {"name": "ans1", "group": "Ungrouped variables", "definition": "precround(abs(z1),3)", "description": "", "templateType": "anything"}, "z3": {"name": "z3", "group": "Ungrouped variables", "definition": "c2+d2*i", "description": "", "templateType": "anything"}, "z1": {"name": "z1", "group": "Ungrouped variables", "definition": "a1+b1*i", "description": "", "templateType": "anything"}, "z4": {"name": "z4", "group": "Ungrouped variables", "definition": "a3+b3*i", "description": "", "templateType": "anything"}, "tb4": {"name": "tb4", "group": "Ungrouped variables", "definition": "(abs(z2)^n4)*sin(n4*arg(z2))", "description": "", "templateType": "anything"}, "ans3": {"name": "ans3", "group": "Ungrouped variables", "definition": "precround(abs(z3),3)", "description": "", "templateType": "anything"}, "ta3": {"name": "ta3", "group": "Ungrouped variables", "definition": "abs(z1)^n2*cos(n2*arg(z1))", "description": "", "templateType": "anything"}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "if(co=a1,co+1,co)", "description": "", "templateType": "anything"}, "s4": {"name": "s4", "group": "Ungrouped variables", "definition": "switch(t=1,-1,t=4,-1,1)", "description": "", "templateType": "anything"}, "b2": {"name": "b2", "group": "Ungrouped variables", "definition": "s5*random(1..3)", "description": "", "templateType": "anything"}, "ans4": {"name": "ans4", "group": "Ungrouped variables", "definition": "precround(abs(z4),3)", "description": "", "templateType": "anything"}, "z6": {"name": "z6", "group": "Ungrouped variables", "definition": "c4+d4*i", "description": "", "templateType": "anything"}, "m2": {"name": "m2", "group": "Ungrouped variables", "definition": "switch(t=1,q2,t=2,q1,t=3,q4,q2)", "description": "", "templateType": "anything"}, "m4": {"name": "m4", "group": "Ungrouped variables", "definition": "switch(t=1,q1,t=2,q3,t=3,q2,q4)", "description": "", "templateType": "anything"}, "q1": {"name": "q1", "group": "Ungrouped variables", "definition": "'The complex number is in the first quadrant.'", "description": "", "templateType": "anything"}, "t": {"name": "t", "group": "Ungrouped variables", "definition": "random(1..4)", "description": "", "templateType": "anything"}, "s1": {"name": "s1", "group": "Ungrouped variables", "definition": "switch(t=1,1,t=4,1,-1)", "description": "", "templateType": "anything"}, "tol": {"name": "tol", "group": "Ungrouped variables", "definition": "0.001", "description": "", "templateType": "anything"}, "a1": {"name": "a1", "group": "Ungrouped variables", "definition": "s1*random(1..3)", "description": "", "templateType": "anything"}, "co": {"name": "co", "group": "Ungrouped variables", "definition": "s4*random(1..3)", "description": "", "templateType": "anything"}, "tb3": {"name": "tb3", "group": "Ungrouped variables", "definition": "abs(z1)^n2*sin(n2*arg(z1))", "description": "", "templateType": "anything"}, "s2": {"name": "s2", "group": "Ungrouped variables", "definition": "switch(t=1,-1,t=3,-1,1)", "description": "", "templateType": "anything"}, "s3": {"name": "s3", "group": "Ungrouped variables", "definition": "switch(t=1,1,t=2,-1,t=3,-1,1)", "description": "", "templateType": "anything"}, "m3": {"name": "m3", "group": "Ungrouped variables", "definition": "switch(t=1,q3,t=2,q4,t=3,q1,q3)", "description": "", "templateType": "anything"}, "n2": {"name": "n2", "group": "Ungrouped variables", "definition": "random(7..10)", "description": "", "templateType": "anything"}, "d2": {"name": "d2", "group": "Ungrouped variables", "definition": "s7*random(1..9)", "description": "", "templateType": "anything"}, "c2": {"name": "c2", "group": "Ungrouped variables", "definition": "s6*random(1..9)", "description": "", "templateType": "anything"}, "z5": {"name": "z5", "group": "Ungrouped variables", "definition": "a4+b4*i", "description": "", "templateType": "anything"}, "d4": {"name": "d4", "group": "Ungrouped variables", "definition": "s5*random(1..9)", "description": "", "templateType": "anything"}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything"}, "z2": {"name": "z2", "group": "Ungrouped variables", "definition": "a2+b2*i", "description": "", "templateType": "anything"}, "b1": {"name": "b1", "group": "Ungrouped variables", "definition": "s2*random(1..3)", "description": "", "templateType": "anything"}, "s8": {"name": "s8", "group": "Ungrouped variables", "definition": "switch(t=1,1,t=4,-1,t=3,1,-1)", "description": "", "templateType": "anything"}, "q3": {"name": "q3", "group": "Ungrouped variables", "definition": "'The complex number is in the third quadrant.'", "description": "", "templateType": "anything"}, "ans2": {"name": "ans2", "group": "Ungrouped variables", "definition": "precround(abs(z2),3)", "description": "", "templateType": "anything"}, "ta4": {"name": "ta4", "group": "Ungrouped variables", "definition": "(abs(z2)^n4)*cos(n4*arg(z2))", "description": "", "templateType": "anything"}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "precround(ta3,3)", "description": "", "templateType": "anything"}, "a4": {"name": "a4", "group": "Ungrouped variables", "definition": "precround(ta4,3)", "description": "", "templateType": "anything"}, "q2": {"name": "q2", "group": "Ungrouped variables", "definition": "'The complex number is in the second quadrant.'", "description": "", "templateType": "anything"}, "s6": {"name": "s6", "group": "Ungrouped variables", "definition": "switch(t=1,-1,t=4,-1,1)", "description": "", "templateType": "anything"}, "arg1": {"name": "arg1", "group": "Ungrouped variables", "definition": "precround(arg(z1),3)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["co", "ans1", "arg2", "ans3", "ans4", "tb4", "b4", "b1", "b2", "b3", "d4", "d2", "z6", "q1", "q3", "q2", "q4", "s3", "s2", "s1", "s7", "s6", "s5", "s4", "m4", "m1", "m3", "arg1", "z3", "tb3", "ta4", "arg3", "tol", "ta3", "arg4", "m2", "a1", "a3", "s8", "a4", "z4", "z5", "ans2", "z1", "z2", "c4", "f", "a2", "t", "n2", "n4", "c2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Find the modulus and argument of $\\var{z1}$  correct to 3 decimal places.

\n

(i) $|\\var{z1}|\\;=\\;$ [[0]], correct to 3 decimal places.

\n

(ii) $\\arg(\\var{z1})\\;=\\;$[[1]] radians, correct to 3 decimal places.

\n

Hence find:

\n

(iii) $(\\var{z1})^{\\var{n2}}\\;=\\;$[[2]]

\n

Input as a complex number, with integer values for the real and imaginary parts.

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "minValue": "ans1-tol", "maxValue": "ans1+tol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "minValue": "arg1-tol", "maxValue": "arg1+tol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 2, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{a3}+{b3}*i", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "valuegenerators": []}], "sortAnswers": false}]}, {"name": "Shaheen's copy of Arithmetics of complex numbers II", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Shaheen Charlwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1819/"}], "tags": [], "metadata": {"description": "

Multiplication and addition of complex numbers. Four parts.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Find the following complex numbers in the form $a+bi\\;$ where $a$ and $b$ are real.

\n

Input all numbers as fractions or integers (whole numbers). Also do not include brackets in your answers.

", "advice": "

a)

\n

The solution is given by:

\n


$\\simplify[std]{{e6*i}}(\\simplify[std]{{a}})=\\simplify[std]{{a*e6*i}}$

\n


b)

\n

$\\simplify[std]{{a}*{z4}={a*z4}}$

\n


c)
\\[ \\begin{eqnarray*} \\simplify[std,!otherNumbers]{{a}*({a3} + {b3} * i + {c3} * i ^ 2 + {d3} * i ^ 3)}&=&\\simplify[std]{{a}*{a3 + b3 * i + c3 * i ^ 2 + d3 * i ^ 3}}\\\\ &=&\\simplify[std]{{a*(a3 + b3 * i + c3 * i ^ 2 + d3 * i ^ 3)}} \\end{eqnarray*} \\]
d)

\n

This can be calculated by using the formula twice, firstly to multiply out the first two sets of parentheses, 

\n

and then to multiply the result of that calculation by the third set of parentheses.

\n

So we obtain:
\\[ \\begin{eqnarray*} (\\var{a})(\\var{z1})(\\var{z3})&=&((\\var{a})(\\var{z1}))(\\var{z3})\\\\ &=&(\\var{a*(z1)})(\\var{z3})\\\\ &=&\\var{a*(z1)*(z3)} \\end{eqnarray*} \\]

", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "s1*random(1..9)+s2*random(1..9)*i", "description": "", "templateType": "anything"}, "s1": {"name": "s1", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "s4": {"name": "s4", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "z1": {"name": "z1", "group": "Ungrouped variables", "definition": "s3*random(1..9)+f6*i", "description": "", "templateType": "anything"}, "d3": {"name": "d3", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "description": "", "templateType": "anything"}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "description": "", "templateType": "anything"}, "b3": {"name": "b3", "group": "Ungrouped variables", "definition": "s2*random(1..9)", "description": "", "templateType": "anything"}, "s5": {"name": "s5", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "z3": {"name": "z3", "group": "Ungrouped variables", "definition": "s6*random(1..9)+e6*i", "description": "", "templateType": "anything"}, "e6": {"name": "e6", "group": "Ungrouped variables", "definition": "s5*random(3..9)", "description": "", "templateType": "anything"}, "z4": {"name": "z4", "group": "Ungrouped variables", "definition": "s6*s2*random(1..9)+s3*s5*random(1..9)*i", "description": "", "templateType": "anything"}, "f6": {"name": "f6", "group": "Ungrouped variables", "definition": "s6*random(1..9)", "description": "", "templateType": "anything"}, "d6": {"name": "d6", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "description": "", "templateType": "anything"}, "c3": {"name": "c3", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "description": "", "templateType": "anything"}, "s3": {"name": "s3", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "z2": {"name": "z2", "group": "Ungrouped variables", "definition": "s2*random(1..9)+d6*i", "description": "", "templateType": "anything"}, "s2": {"name": "s2", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "s6": {"name": "s6", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "f6", "s3", "s2", "s1", "d3", "s6", "s5", "s4", "c3", "a3", "b3", "d6", "e6", "z4", "z1", "z2", "z3"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

$\\var{e6*i}(\\simplify[std]{{a}})\\;=\\;$[[0]].

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{a*e6*i}", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "notallowed": {"strings": [".", ")", "("], "showStrings": false, "partialCredit": 0, "message": "

Input all numbers as fractions or integers. Also do not include brackets in your answers.

"}, "valuegenerators": []}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

$(\\simplify[std]{{a}})(\\simplify[std]{{z4}})\\;=\\;$[[0]].

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "({a*z4})", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "notallowed": {"strings": [".", ")", "("], "showStrings": false, "partialCredit": 0, "message": "

Input all numbers as fractions or integers. Also do not include brackets in your answers.

"}, "valuegenerators": []}], "sortAnswers": false}]}, {"name": "Shaheen's copy of Arithmetics of complex numbers II", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Shaheen Charlwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1819/"}], "tags": [], "metadata": {"description": "

Multiplication and addition of complex numbers. Four parts.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Find the following complex numbers in the form $a+bi\\;$ where $a$ and $b$ are real.

\n

Input all numbers as fractions or integers (whole numbers). Also do not include brackets in your answers.

", "advice": "

a)

\n

The solution is given by:

\n


$\\simplify[std]{{e6*i}}(\\simplify[std]{{a}})=\\simplify[std]{{a*e6*i}}$

\n


b)

\n

$\\simplify[std]{{a}*{z4}={a*z4}}$

\n


c)
\\[ \\begin{eqnarray*} \\simplify[std,!otherNumbers]{{a}*({a3} + {b3} * i + {c3} * i ^ 2 + {d3} * i ^ 3)}&=&\\simplify[std]{{a}*{a3 + b3 * i + c3 * i ^ 2 + d3 * i ^ 3}}\\\\ &=&\\simplify[std]{{a*(a3 + b3 * i + c3 * i ^ 2 + d3 * i ^ 3)}} \\end{eqnarray*} \\]
d)

\n

This can be calculated by using the formula twice, firstly to multiply out the first two sets of parentheses, 

\n

and then to multiply the result of that calculation by the third set of parentheses.

\n

So we obtain:
\\[ \\begin{eqnarray*} (\\var{a})(\\var{z1})(\\var{z3})&=&((\\var{a})(\\var{z1}))(\\var{z3})\\\\ &=&(\\var{a*(z1)})(\\var{z3})\\\\ &=&\\var{a*(z1)*(z3)} \\end{eqnarray*} \\]

", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "s1*random(1..9)+s2*random(1..9)*i", "description": "", "templateType": "anything"}, "s1": {"name": "s1", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "s4": {"name": "s4", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "z1": {"name": "z1", "group": "Ungrouped variables", "definition": "s3*random(1..9)+f6*i", "description": "", "templateType": "anything"}, "d3": {"name": "d3", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "description": "", "templateType": "anything"}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "description": "", "templateType": "anything"}, "b3": {"name": "b3", "group": "Ungrouped variables", "definition": "s2*random(1..9)", "description": "", "templateType": "anything"}, "s5": {"name": "s5", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "z3": {"name": "z3", "group": "Ungrouped variables", "definition": "s6*random(1..9)+e6*i", "description": "", "templateType": "anything"}, "e6": {"name": "e6", "group": "Ungrouped variables", "definition": "s5*random(3..9)", "description": "", "templateType": "anything"}, "z4": {"name": "z4", "group": "Ungrouped variables", "definition": "s6*s2*random(1..9)+s3*s5*random(1..9)*i", "description": "", "templateType": "anything"}, "f6": {"name": "f6", "group": "Ungrouped variables", "definition": "s6*random(1..9)", "description": "", "templateType": "anything"}, "d6": {"name": "d6", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "description": "", "templateType": "anything"}, "c3": {"name": "c3", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "description": "", "templateType": "anything"}, "s3": {"name": "s3", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "z2": {"name": "z2", "group": "Ungrouped variables", "definition": "s2*random(1..9)+d6*i", "description": "", "templateType": "anything"}, "s2": {"name": "s2", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "s6": {"name": "s6", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "f6", "s3", "s2", "s1", "d3", "s6", "s5", "s4", "c3", "a3", "b3", "d6", "e6", "z4", "z1", "z2", "z3"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

$\\var{e6*i}(\\simplify[std]{{a}})\\;=\\;$[[0]].

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{a*e6*i}", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "notallowed": {"strings": [".", ")", "("], "showStrings": false, "partialCredit": 0, "message": "

Input all numbers as fractions or integers. Also do not include brackets in your answers.

"}, "valuegenerators": []}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

$(\\simplify[std]{{a}})(\\simplify[std]{{z4}})\\;=\\;$[[0]].

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "({a*z4})", "answerSimplification": "std", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "notallowed": {"strings": [".", ")", "("], "showStrings": false, "partialCredit": 0, "message": "

Input all numbers as fractions or integers. Also do not include brackets in your answers.

"}, "valuegenerators": []}], "sortAnswers": false}]}]}], "navigation": {"allowregen": false, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": false, "showresultspage": "oncompletion", "onleave": {"action": "warnifunattempted", "message": "

You have not attempted this question!

"}, "preventleave": true, "startpassword": "WM104"}, "timing": {"allowPause": false, "timeout": {"action": "warn", "message": "

That is the end of your 25 minutes for the complex numbers part of the in-class assessment.

\n

Please wait for further instructions from the invigilator.

"}, "timedwarning": {"action": "warn", "message": "

You have 5 minutes left to compete this complex numbers part of your in-class assessment.

"}}, "feedback": {"showactualmark": false, "showtotalmark": true, "showanswerstate": false, "allowrevealanswer": false, "advicethreshold": 0, "intro": "

You are allowed 25 minutes on this complex numbers part of your in-class assessment.

", "feedbackmessages": []}, "contributors": [{"name": "Shaheen Charlwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1819/"}], "extensions": [], "custom_part_types": [], "resources": []}