// Numbas version: exam_results_page_options {"name": "Gemma's copy of Complex Numbers: Modulus, Argument", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

Find the modulus and argument (in radians) of the following complex numbers, where the argument lies between $-\\pi$ and $\\pi$. If your answer is outside this range, simply add or subtract $2\\pi$ to your answer.

\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.

\n

*Hint - draw an Argand diagram to help!*

", "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)

\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
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)

\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
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)

\n
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)

\n
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.

", "tags": [], "extensions": [], "variable_groups": [], "variables": {"ans3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(abs(z3),3)", "description": "", "name": "ans3"}, "m1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,q4,t=2,q2,t=3,q3,q1)", "description": "", "name": "m1"}, "q2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "'The complex number is in the second quadrant.'", "description": "", "name": "q2"}, "a3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s3*random(1..9)", "description": "", "name": "a3"}, "c2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s6*random(1..9)", "description": "", "name": "c2"}, "m3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,q3,t=2,q4,t=3,q1,q3)", "description": "", "name": "m3"}, "m2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,q2,t=2,q1,t=3,q4,q2)", "description": "", "name": "m2"}, "t": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..4)", "description": "", "name": "t"}, "n": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(3..5)", "description": "", "name": "n"}, "arg1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arg(z1),3)", "description": "", "name": "arg1"}, "z5": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a4+b4*i", "description": "", "name": "z5"}, "s5": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=3,-1,1)", "description": "", "name": "s5"}, "a2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s4*random(1..9)", "description": "", "name": "a2"}, "f": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "name": "f"}, "b4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s1*random(1..9)", "description": "", "name": "b4"}, "b3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s8*random(1..9)", "description": "", "name": "b3"}, "ans2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(abs(z2),3)", "description": "", "name": "ans2"}, "q1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "'The complex number is in the first quadrant.'", "description": "", "name": "q1"}, "arg4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arg(z4),3)", "description": "", "name": "arg4"}, "m4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,q1,t=2,q3,t=3,q2,q4)", "description": "", "name": "m4"}, "s4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,-1,t=4,-1,1)", "description": "", "name": "s4"}, "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"}, "s3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,1,t=2,-1,t=3,-1,1)", "description": "", "name": "s3"}, "d4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s5*random(1..9)", "description": "", "name": "d4"}, "arg2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arg(z2),3)", "description": "", "name": "arg2"}, "s1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,1,t=4,1,-1)", "description": "", "name": "s1"}, "z1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a1+b1*i", "description": "", "name": "z1"}, "s8": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,1,t=4,-1,t=3,1,-1)", "description": "", "name": "s8"}, "q3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "'The complex number is in the third quadrant.'", "description": "", "name": "q3"}, "z2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a2+b2*i", "description": "", "name": "z2"}, "z4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a3+b3*i", "description": "", "name": "z4"}, "s6": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,-1,t=4,-1,1)", "description": "", "name": "s6"}, "s7": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=2,-1,t=3,1,-1)", "description": "", "name": "s7"}, "arg3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(arg(z3),3)", "description": "", "name": "arg3"}, "z6": {"templateType": "anything", "group": "Ungrouped variables", "definition": "c4+d4*i", "description": "", "name": "z6"}, "ans4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(abs(z4),3)", "description": "", "name": "ans4"}, "c4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "if(a4=f,f+1,f)", "description": "", "name": "c4"}, "a4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s8*random(1..9)", "description": "", "name": "a4"}, "b1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s2*random(3..9)", "description": "", "name": "b1"}, "d2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s7*random(1..9)", "description": "", "name": "d2"}, "q4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "'The complex number is in the fourth quadrant.'", "description": "", "name": "q4"}, "tol": {"templateType": "anything", "group": "Ungrouped variables", "definition": "0.001", "description": "", "name": "tol"}, "s2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "switch(t=1,-1,t=3,-1,1)", "description": "", "name": "s2"}, "z3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "c2+d2*i", "description": "", "name": "z3"}, "a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "s1*random(2..9)", "description": "", "name": "a1"}}, "metadata": {"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!

"}, "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "preamble": {"js": "", "css": ""}, "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", "m3", "arg1", "z3", "arg2", "arg3", "tol", "arg4", "m2", "a1", "a3", "s8", "a4", "z4", "z5", "z6", "z1", "z2", "c4", "f", "n", "a2", "t", "c2"], "variablesTest": {"condition": "", "maxRuns": 100}, "name": "Gemma's copy of Complex Numbers: Modulus, Argument", "functions": {}, "parts": [{"showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 0, "variableReplacements": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "prompt": "\n

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

\n

Input both answers to 3 decimal places.

\n ", "unitTests": [], "type": "gapfill", "gaps": [{"maxValue": "ans1+tol", "correctAnswerFraction": false, "correctAnswerStyle": "plain", "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "allowFractions": false, "minValue": "ans1-tol", "variableReplacements": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "unitTests": [], "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "mustBeReduced": false}, {"maxValue": "arg1+tol", "correctAnswerFraction": false, "correctAnswerStyle": "plain", "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "allowFractions": false, "minValue": "arg1-tol", "variableReplacements": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "unitTests": [], "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "mustBeReduced": false}], "extendBaseMarkingAlgorithm": true}, {"showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 0, "variableReplacements": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "prompt": "\n

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

\n

Input both answers to 3 decimal places.

\n ", "unitTests": [], "type": "gapfill", "gaps": [{"maxValue": "ans2+tol", "correctAnswerFraction": false, "correctAnswerStyle": "plain", "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "allowFractions": false, "minValue": "ans2-tol", "variableReplacements": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "unitTests": [], "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "mustBeReduced": false}, {"maxValue": "arg2+tol", "correctAnswerFraction": false, "correctAnswerStyle": "plain", "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "allowFractions": false, "minValue": "arg2-tol", "variableReplacements": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "unitTests": [], "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "mustBeReduced": false}], "extendBaseMarkingAlgorithm": true}, {"showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 0, "variableReplacements": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "prompt": "\n

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

\n

Input both answers to 3 decimal places.

\n ", "unitTests": [], "type": "gapfill", "gaps": [{"maxValue": "ans3+tol", "correctAnswerFraction": false, "correctAnswerStyle": "plain", "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "allowFractions": false, "minValue": "ans3-tol", "variableReplacements": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "unitTests": [], "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "mustBeReduced": false}, {"maxValue": "arg3+tol", "correctAnswerFraction": false, "correctAnswerStyle": "plain", "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "allowFractions": false, "minValue": "arg3-tol", "variableReplacements": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "unitTests": [], "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "mustBeReduced": false}], "extendBaseMarkingAlgorithm": true}, {"showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 0, "variableReplacements": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "prompt": "\n

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

\n

Input both answers to 3 decimal places.

\n ", "unitTests": [], "type": "gapfill", "gaps": [{"maxValue": "ans4+tol", "correctAnswerFraction": false, "correctAnswerStyle": "plain", "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "allowFractions": false, "minValue": "ans4-tol", "variableReplacements": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "unitTests": [], "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "mustBeReduced": false}, {"maxValue": "arg4+tol", "correctAnswerFraction": false, "correctAnswerStyle": "plain", "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "allowFractions": false, "minValue": "arg4-tol", "variableReplacements": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "unitTests": [], "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "mustBeReduced": false}], "extendBaseMarkingAlgorithm": true}], "type": "question", "contributors": [{"name": "Gemma Crowe", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2440/"}]}]}], "contributors": [{"name": "Gemma Crowe", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2440/"}]}