// Numbas version: exam_results_page_options {"name": "Blathnaid's copy of Modulus and argument complex numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "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": "Blathnaid's copy of Modulus and argument complex numbers", "tags": [], "variable_groups": [], "functions": {}, "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"], "parts": [{"gaps": [{"mustBeReduced": false, "showFeedbackIcon": true, "useCustomName": false, "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": "", "allowFractions": false, "extendBaseMarkingAlgorithm": true, "customName": "", "correctAnswerStyle": "plain", "minValue": "ans1-tol", "variableReplacements": [], "scripts": {}, "mustBeReducedPC": 0, "adaptiveMarkingPenalty": 0, "maxValue": "ans1+tol", "variableReplacementStrategy": "originalfirst", "marks": 1, "type": "numberentry", "unitTests": [], "showCorrectAnswer": true, "showFractionHint": true, "correctAnswerFraction": false}, {"mustBeReduced": false, "showFeedbackIcon": true, "useCustomName": false, "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": "", "allowFractions": false, "extendBaseMarkingAlgorithm": true, "customName": "", "correctAnswerStyle": "plain", "minValue": "arg1-tol", "variableReplacements": [], "scripts": {}, "mustBeReducedPC": 0, "adaptiveMarkingPenalty": 0, "maxValue": "arg1+tol", "variableReplacementStrategy": "originalfirst", "marks": 1, "type": "numberentry", "unitTests": [], "showCorrectAnswer": true, "showFractionHint": true, "correctAnswerFraction": false}], "showFeedbackIcon": true, "adaptiveMarkingPenalty": 0, "useCustomName": false, "variableReplacements": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "marks": 0, "prompt": "

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

\n

Input both answers to 3 decimal places.

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

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

\n

Input both answers to 3 decimal places.

", "extendBaseMarkingAlgorithm": true, "type": "gapfill", "unitTests": [], "showCorrectAnswer": true, "sortAnswers": false, "scripts": {}, "customName": ""}], "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.

", "metadata": {"description": "

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

", "licence": "Creative Commons Attribution 4.0 International"}, "variables": {"m4": {"definition": "switch(t=1,q1,t=2,q3,t=3,q2,q4)", "templateType": "anything", "name": "m4", "description": "", "group": "Ungrouped variables"}, "s3": {"definition": "switch(t=1,1,t=2,-1,t=3,-1,1)", "templateType": "anything", "name": "s3", "description": "", "group": "Ungrouped variables"}, "ans3": {"definition": "precround(abs(z3),3)", "templateType": "anything", "name": "ans3", "description": "", "group": "Ungrouped variables"}, "s1": {"definition": "switch(t=1,1,t=4,1,-1)", "templateType": "anything", "name": "s1", "description": "", "group": "Ungrouped variables"}, "z5": {"definition": "a4+b4*i", "templateType": "anything", "name": "z5", "description": "", "group": "Ungrouped variables"}, "n": {"definition": "random(3..5)", "templateType": "anything", "name": "n", "description": "", "group": "Ungrouped variables"}, "a1": {"definition": "s1*random(2..9)", "templateType": "anything", "name": "a1", "description": "", "group": "Ungrouped variables"}, "z4": {"definition": "a3+b3*i", "templateType": "anything", "name": "z4", "description": "", "group": "Ungrouped variables"}, "b2": {"definition": "s5*random(1..9)", "templateType": "anything", "name": "b2", "description": "", "group": "Ungrouped variables"}, "ans2": {"definition": "precround(abs(z2),3)", "templateType": "anything", "name": "ans2", "description": "", "group": "Ungrouped variables"}, "ans4": {"definition": "precround(abs(z4),3)", "templateType": "anything", "name": "ans4", "description": "", "group": "Ungrouped variables"}, "z1": {"definition": "a1+b1*i", "templateType": "anything", "name": "z1", "description": "", "group": "Ungrouped variables"}, "d2": {"definition": "s7*random(1..9)", "templateType": "anything", "name": "d2", "description": "", "group": "Ungrouped variables"}, "z3": {"definition": "c2+d2*i", "templateType": "anything", "name": "z3", "description": "", "group": "Ungrouped variables"}, "a4": {"definition": "s8*random(1..9)", "templateType": "anything", "name": "a4", "description": "", "group": "Ungrouped variables"}, "arg4": {"definition": "precround(arg(z4),3)", "templateType": "anything", "name": "arg4", "description": "", "group": "Ungrouped variables"}, "s2": {"definition": "switch(t=1,-1,t=3,-1,1)", "templateType": "anything", "name": "s2", "description": "", "group": "Ungrouped variables"}, "s4": {"definition": "switch(t=1,-1,t=4,-1,1)", "templateType": "anything", "name": "s4", "description": "", "group": "Ungrouped variables"}, "tol": {"definition": "0.001", "templateType": "anything", "name": "tol", "description": "", "group": "Ungrouped variables"}, "d4": {"definition": "s5*random(1..9)", "templateType": "anything", "name": "d4", "description": "", "group": "Ungrouped variables"}, "a2": {"definition": "s4*random(1..9)", "templateType": "anything", "name": "a2", "description": "", "group": "Ungrouped variables"}, "b3": {"definition": "s8*random(1..9)", "templateType": "anything", "name": "b3", "description": "", "group": "Ungrouped variables"}, "c2": {"definition": "s6*random(1..9)", "templateType": "anything", "name": "c2", "description": "", "group": "Ungrouped variables"}, "b4": {"definition": "s1*random(1..9)", "templateType": "anything", "name": "b4", "description": "", "group": "Ungrouped variables"}, "f": {"definition": "random(1..9)", "templateType": "anything", "name": "f", "description": "", "group": "Ungrouped variables"}, "m2": {"definition": "switch(t=1,q2,t=2,q1,t=3,q4,q2)", "templateType": "anything", "name": "m2", "description": "", "group": "Ungrouped variables"}, "m3": {"definition": "switch(t=1,q3,t=2,q4,t=3,q1,q3)", "templateType": "anything", "name": "m3", "description": "", "group": "Ungrouped variables"}, "q4": {"definition": "'The complex number is in the fourth quadrant.'", "templateType": "anything", "name": "q4", "description": "", "group": "Ungrouped variables"}, "s7": {"definition": "switch(t=2,-1,t=3,1,-1)", "templateType": "anything", "name": "s7", "description": "", "group": "Ungrouped variables"}, "ans1": {"definition": "precround(abs(z1),3)", "templateType": "anything", "name": "ans1", "description": "", "group": "Ungrouped variables"}, "z2": {"definition": "a2+b2*i", "templateType": "anything", "name": "z2", "description": "", "group": "Ungrouped variables"}, "z6": {"definition": "c4+d4*i", "templateType": "anything", "name": "z6", "description": "", "group": "Ungrouped variables"}, "s6": {"definition": "switch(t=1,-1,t=4,-1,1)", "templateType": "anything", "name": "s6", "description": "", "group": "Ungrouped variables"}, "arg3": {"definition": "precround(arg(z3),3)", "templateType": "anything", "name": "arg3", "description": "", "group": "Ungrouped variables"}, "a3": {"definition": "s3*random(1..9)", "templateType": "anything", "name": "a3", "description": "", "group": "Ungrouped variables"}, "q3": {"definition": "'The complex number is in the third quadrant.'", "templateType": "anything", "name": "q3", "description": "", "group": "Ungrouped variables"}, "t": {"definition": "random(1..4)", "templateType": "anything", "name": "t", "description": "", "group": "Ungrouped variables"}, "m1": {"definition": "switch(t=1,q4,t=2,q2,t=3,q3,q1)", "templateType": "anything", "name": "m1", "description": "", "group": "Ungrouped variables"}, "c4": {"definition": "if(a4=f,f+1,f)", "templateType": "anything", "name": "c4", "description": "", "group": "Ungrouped variables"}, "arg1": {"definition": "precround(arg(z1),3)", "templateType": "anything", "name": "arg1", "description": "", "group": "Ungrouped variables"}, "q2": {"definition": "'The complex number is in the second quadrant.'", "templateType": "anything", "name": "q2", "description": "", "group": "Ungrouped variables"}, "s5": {"definition": "switch(t=3,-1,1)", "templateType": "anything", "name": "s5", "description": "", "group": "Ungrouped variables"}, "q1": {"definition": "'The complex number is in the first quadrant.'", "templateType": "anything", "name": "q1", "description": "", "group": "Ungrouped variables"}, "b1": {"definition": "s2*random(3..9)", "templateType": "anything", "name": "b1", "description": "", "group": "Ungrouped variables"}, "s8": {"definition": "switch(t=1,1,t=4,-1,t=3,1,-1)", "templateType": "anything", "name": "s8", "description": "", "group": "Ungrouped variables"}, "arg2": {"definition": "precround(arg(z2),3)", "templateType": "anything", "name": "arg2", "description": "", "group": "Ungrouped variables"}}, "preamble": {"js": "", "css": ""}, "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "contributors": [{"name": "Blathnaid Sheridan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/447/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Blathnaid Sheridan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/447/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}