// Numbas version: exam_results_page_options {"name": "Maria'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": [{"variable_groups": [], "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "notes": "
15/7/2015:
\nAdded tags.
\n5/07/2012:
\nAdded tags.
\nChanged some of the grammar in the advice section.
\nQuestion appears to be working correctly.
\nThe presentation in IE on using Test Run is not good.
\n9/07/2012:
\nDisplay in Advice set out properly.
\n13/07/2009:
\nSet new tolerance variable tol=0.001 for all numeric input.
", "description": "Finding the modulus and argument (in radians) of four complex numbers; the arguments between $-\\pi$ and $\\pi$ and careful with quadrants!
"}, "advice": "Note that the arguments $\\theta$ of the complex numbers are in radians and have to be in the range $-\\pi < \\theta \\le \\pi$.
\nYou have to be careful with using a standard calculator when you are finding the argument of a complex number.
\nIf $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$.
\nUsing 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.
\nHowever, The calculator gives the wrong value for complex numbers in the other quadrants.
\nComplex number in the Second Quadrant.
\nSince $\\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.
\nComplex number in the Third Quadrant.
\nSince $\\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.
\na)Modulus.
\n\\[ \\begin{eqnarray*} |\\var{z1}|&=&\\sqrt{(\\var{a1})^2+(\\var{b1})^2}\\\\ &=& \\var{abs(z1)}\\\\ &=&\\var{ans1} \\end{eqnarray*} \\] to 3 decimal places.
\nArgument.
\n{m1}
\nHence we see that: \\[\\begin{eqnarray*} \\arg(\\var{z1}) &=& \\var{arg(z1)}\\\\ &=& \\var{arg1}\\; \\mbox{radians} \\end{eqnarray*} \\] to 3 decimal places.
\nb)Modulus.
\n\\[ \\begin{eqnarray*} |\\var{z2}|&=&\\sqrt{(\\var{a2})^2+(\\var{b2})^2}\\\\ &=& \\var{abs(z2)}\\\\ &=&\\var{ans2} \\end{eqnarray*} \\] to 3 decimal places.
\nArgument.
\n{m2}
\nHence we see that: \\[\\begin{eqnarray*} \\arg(\\var{z2}) &=& \\var{arg(z2)}\\\\ &=& \\var{arg2}\\; \\mbox{radians} \\end{eqnarray*} \\] to 3 decimal places.
\nc)Modulus.
\n\\[ \\begin{eqnarray*} |\\var{z3}|&=&\\sqrt{(\\var{c2})^2+(\\var{d2})^2}\\\\ &=& \\var{abs(z3)}\\\\ &=&\\var{ans3} \\end{eqnarray*} \\] to 3 decimal places.
\nArgument.
\n{m3}
\nHence we see that: \\[\\begin{eqnarray*} \\arg(\\var{z3}) &=& \\var{arg(z3)}\\\\ &=& \\var{arg3}\\; \\mbox{radians} \\end{eqnarray*} \\] to 3 decimal places.
\nd)Modulus.
\n\\[ \\begin{eqnarray*} |\\var{z4}|&=&\\sqrt{(\\var{a3})^2+(\\var{b3})^2}\\\\ &=& \\var{abs(z4)}\\\\ &=&\\var{ans4} \\end{eqnarray*} \\] to 3 decimal places.
\nArgument.
\n{m4}
\nHence we see that: \\[\\begin{eqnarray*} \\arg(\\var{z4}) &=& \\var{arg(z4)}\\\\ &=& \\var{arg4}\\; \\mbox{radians} \\end{eqnarray*} \\] to 3 decimal places.
", "variables": {"s7": {"group": "Ungrouped variables", "name": "s7", "templateType": "anything", "definition": "switch(t=2,-1,t=3,1,-1)", "description": ""}, "m4": {"group": "Ungrouped variables", "name": "m4", "templateType": "anything", "definition": "switch(t=1,q1,t=2,q3,t=3,q2,q4)", "description": ""}, "a4": {"group": "Ungrouped variables", "name": "a4", "templateType": "anything", "definition": "s8*random(1..9)", "description": ""}, "m1": {"group": "Ungrouped variables", "name": "m1", "templateType": "anything", "definition": "switch(t=1,q4,t=2,q2,t=3,q3,q1)", "description": ""}, "d2": {"group": "Ungrouped variables", "name": "d2", "templateType": "anything", "definition": "s7*random(1..9)", "description": ""}, "d4": {"group": "Ungrouped variables", "name": "d4", "templateType": "anything", "definition": "s5*random(1..9)", "description": ""}, "q1": {"group": "Ungrouped variables", "name": "q1", "templateType": "anything", "definition": "'The complex number is in the first quadrant.'", "description": ""}, "ans4": {"group": "Ungrouped variables", "name": "ans4", "templateType": "anything", "definition": "precround(abs(z4),3)", "description": ""}, "f": {"group": "Ungrouped variables", "name": "f", "templateType": "anything", "definition": "random(1..9)", "description": ""}, "z4": {"group": "Ungrouped variables", "name": "z4", "templateType": "anything", "definition": "a3+b3*i", "description": ""}, "n": {"group": "Ungrouped variables", "name": "n", "templateType": "anything", "definition": "random(3..5)", "description": ""}, "s6": {"group": "Ungrouped variables", "name": "s6", "templateType": "anything", "definition": "switch(t=1,-1,t=4,-1,1)", "description": ""}, "ans2": {"group": "Ungrouped variables", "name": "ans2", "templateType": "anything", "definition": "precround(abs(z2),3)", "description": ""}, "q2": {"group": "Ungrouped variables", "name": "q2", "templateType": "anything", "definition": "'The complex number is in the second quadrant.'", "description": ""}, "s8": {"group": "Ungrouped variables", "name": "s8", "templateType": "anything", "definition": "switch(t=1,1,t=4,-1,t=3,1,-1)", "description": ""}, "b4": {"group": "Ungrouped variables", "name": "b4", "templateType": "anything", "definition": "s1*random(1..9)", "description": ""}, "z5": {"group": "Ungrouped variables", "name": "z5", "templateType": "anything", "definition": "a4+b4*i", "description": ""}, "z3": {"group": "Ungrouped variables", "name": "z3", "templateType": "anything", "definition": "c2+d2*i", "description": ""}, "arg2": {"group": "Ungrouped variables", "name": "arg2", "templateType": "anything", "definition": "precround(arg(z2),3)", "description": ""}, "z1": {"group": "Ungrouped variables", "name": "z1", "templateType": "anything", "definition": "a1+b1*i", "description": ""}, "s1": {"group": "Ungrouped variables", "name": "s1", "templateType": "anything", "definition": "switch(t=1,1,t=4,1,-1)", "description": ""}, "t": {"group": "Ungrouped variables", "name": "t", "templateType": "anything", "definition": "random(1..4)", "description": ""}, "b2": {"group": "Ungrouped variables", "name": "b2", "templateType": "anything", "definition": "s5*random(1..9)", "description": ""}, "m3": {"group": "Ungrouped variables", "name": "m3", "templateType": "anything", "definition": "switch(t=1,q3,t=2,q4,t=3,q1,q3)", "description": ""}, "s4": {"group": "Ungrouped variables", "name": "s4", "templateType": "anything", "definition": "switch(t=1,-1,t=4,-1,1)", "description": ""}, "a1": {"group": "Ungrouped variables", "name": "a1", "templateType": "anything", "definition": "s1*random(2..9)", "description": ""}, "ans3": {"group": "Ungrouped variables", "name": "ans3", "templateType": "anything", "definition": "precround(abs(z3),3)", "description": ""}, "m2": {"group": "Ungrouped variables", "name": "m2", "templateType": "anything", "definition": "switch(t=1,q2,t=2,q1,t=3,q4,q2)", "description": ""}, "s3": {"group": "Ungrouped variables", "name": "s3", "templateType": "anything", "definition": "switch(t=1,1,t=2,-1,t=3,-1,1)", "description": ""}, "q4": {"group": "Ungrouped variables", "name": "q4", "templateType": "anything", "definition": "'The complex number is in the fourth quadrant.'", "description": ""}, "arg4": {"group": "Ungrouped variables", "name": "arg4", "templateType": "anything", "definition": "precround(arg(z4),3)", "description": ""}, "s2": {"group": "Ungrouped variables", "name": "s2", "templateType": "anything", "definition": "switch(t=1,-1,t=3,-1,1)", "description": ""}, "s5": {"group": "Ungrouped variables", "name": "s5", "templateType": "anything", "definition": "switch(t=3,-1,1)", "description": ""}, "b1": {"group": "Ungrouped variables", "name": "b1", "templateType": "anything", "definition": "s2*random(3..9)", "description": ""}, "c4": {"group": "Ungrouped variables", "name": "c4", "templateType": "anything", "definition": "if(a4=f,f+1,f)", "description": ""}, "arg1": {"group": "Ungrouped variables", "name": "arg1", "templateType": "anything", "definition": "precround(arg(z1),3)", "description": ""}, "tol": {"group": "Ungrouped variables", "name": "tol", "templateType": "anything", "definition": "0.001", "description": ""}, "c2": {"group": "Ungrouped variables", "name": "c2", "templateType": "anything", "definition": "s6*random(1..9)", "description": ""}, "z2": {"group": "Ungrouped variables", "name": "z2", "templateType": "anything", "definition": "a2+b2*i", "description": ""}, "ans1": {"group": "Ungrouped variables", "name": "ans1", "templateType": "anything", "definition": "precround(abs(z1),3)", "description": ""}, "b3": {"group": "Ungrouped variables", "name": "b3", "templateType": "anything", "definition": "s8*random(1..9)", "description": ""}, "z6": {"group": "Ungrouped variables", "name": "z6", "templateType": "anything", "definition": "c4+d4*i", "description": ""}, "a2": {"group": "Ungrouped variables", "name": "a2", "templateType": "anything", "definition": "s4*random(1..9)", "description": ""}, "a3": {"group": "Ungrouped variables", "name": "a3", "templateType": "anything", "definition": "s3*random(1..9)", "description": ""}, "q3": {"group": "Ungrouped variables", "name": "q3", "templateType": "anything", "definition": "'The complex number is in the third quadrant.'", "description": ""}, "arg3": {"group": "Ungrouped variables", "name": "arg3", "templateType": "anything", "definition": "precround(arg(z3),3)", "description": ""}}, "name": "Maria's copy of Modulus and argument complex numbers", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "functions": {}, "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"], "showQuestionGroupNames": false, "variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"marks": 0, "prompt": "$|\\var{z1}|=\\;\\;$[[0]], $\\arg(\\var{z1})=\\;\\;$[[1]] radians
\nInput both answers to 3 decimal places.
", "gaps": [{"marks": 1, "scripts": {}, "correctAnswerFraction": false, "minValue": "ans1-tol", "allowFractions": false, "maxValue": "ans1+tol", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showPrecisionHint": false, "showCorrectAnswer": true, "variableReplacements": []}, {"marks": 1, "scripts": {}, "correctAnswerFraction": false, "minValue": "arg1-tol", "allowFractions": false, "maxValue": "arg1+tol", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showPrecisionHint": false, "showCorrectAnswer": true, "variableReplacements": []}], "variableReplacements": [], "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "gapfill"}, {"marks": 0, "prompt": "$|\\var{z2}|=\\;\\;$[[0]], $\\arg(\\var{z2})=\\;\\;$[[1]] radians
\nInput both answers to 3 decimal places.
", "gaps": [{"marks": 1, "scripts": {}, "correctAnswerFraction": false, "minValue": "ans2-tol", "allowFractions": false, "maxValue": "ans2+tol", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showPrecisionHint": false, "showCorrectAnswer": true, "variableReplacements": []}, {"marks": 1, "scripts": {}, "correctAnswerFraction": false, "minValue": "arg2-tol", "allowFractions": false, "maxValue": "arg2+tol", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showPrecisionHint": false, "showCorrectAnswer": true, "variableReplacements": []}], "variableReplacements": [], "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "gapfill"}, {"marks": 0, "prompt": "$|\\var{z3}|=\\;\\;$[[0]], $\\arg(\\var{z3})=\\;\\;$[[1]] radians
\nInput both answers to 3 decimal places.
", "gaps": [{"marks": 1, "scripts": {}, "correctAnswerFraction": false, "minValue": "ans3-tol", "allowFractions": false, "maxValue": "ans3+tol", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showPrecisionHint": false, "showCorrectAnswer": true, "variableReplacements": []}, {"marks": 1, "scripts": {}, "correctAnswerFraction": false, "minValue": "arg3-tol", "allowFractions": false, "maxValue": "arg3+tol", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showPrecisionHint": false, "showCorrectAnswer": true, "variableReplacements": []}], "variableReplacements": [], "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "gapfill"}, {"marks": 0, "prompt": "$|\\var{z4}|=\\;\\;$[[0]], $\\arg(\\var{z4})=\\;\\;$[[1]] radians
\nInput both answers to 3 decimal places.
", "gaps": [{"marks": 1, "scripts": {}, "correctAnswerFraction": false, "minValue": "ans4-tol", "allowFractions": false, "maxValue": "ans4+tol", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showPrecisionHint": false, "showCorrectAnswer": true, "variableReplacements": []}, {"marks": 1, "scripts": {}, "correctAnswerFraction": false, "minValue": "arg4-tol", "allowFractions": false, "maxValue": "arg4+tol", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showPrecisionHint": false, "showCorrectAnswer": true, "variableReplacements": []}], "variableReplacements": [], "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "gapfill"}], "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"], "statement": "Find the modulus and argument (in radians) of the following complex numbers, where the argument lies between $-\\pi$ and $\\pi$.
\nWhen calculating the argument pay particular attention to the quadrant in which the complex number lies.
\nInput all answers to 3 decimal places.
", "question_groups": [{"questions": [], "name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}