// Numbas version: finer_feedback_settings {"name": "CN04 Modulus and Argument", "extensions": [], "custom_part_types": [], "resources": [["question-resources/Gemini_Generated_Image_67zib967zib967zi.png", "729884c8b134b1301e32abedb2fe42e6d3cac3ffaee47e527cf6f7609a1a19a6.png"], ["question-resources/Gemini_Generated_Image_lzhf4ylzhf4ylzhf.png", "db2a2fb5c3e62b3121873d93b651a1d5dc6755fdec91d0d505c507275a982d6a.png"], ["question-resources/first quadrant.png", "eee737f80b350f441a55d1cdfd7bd0e72f411247f2ebb03400cf0f732907de1e.png"], ["question-resources/second quadrant.png", "47d9f6dd6d40e0f5afc9480ee0b2191d51234147854fa3643328f0465afcebaa.png"], ["question-resources/third quadrant.png", "827bab44b91c39201ddf6a259b58db12f95d7af049ea017304bce03cc10273a0.png"], ["question-resources/fourth quadrant.png", "73c3b80d24e993c003ac025ac4d97445a933a2e0ff21b1b248c32411c3b874e8.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "CN04 Modulus and Argument", "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "
Find the modulus and argument (in radians) of the following complex number, 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.
", "advice": "To find the modulus of a complex number is just finding the distance to the origin or its length on an argand diagram. As such this is just an application of pythagoras' theorem:
\n$\\lvert \\simplify[std]{{z}} \\rvert = \\sqrt{(\\var{a})^2+(\\var{b})^2} = \\var{modulus}$
\nThe argument is slightly more tricky as it depends on which quadrant the complex number is in. The argument is the angle when measured from the positive real axis to the direction of the complex number on the argand diagram.
\n{argumentadvice}
\nUse this link to find resources to help you revise complex numbers.
", "rulesets": {"std": ["all", "!collectnumbers", "fractionNumbers", "!noLeadingMinus"]}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"Quadrant": {"name": "Quadrant", "group": "Ungrouped variables", "definition": "random(3..3)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "switch(Quadrant = 1, random(1..5), Quadrant = 2, random(-5..-1), Quadrant = 3, random(-5..-1), Quadrant = 4, random(1..5), \"N/A\")", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "switch(Quadrant = 1, random(1..5), Quadrant = 2, random(1..5), Quadrant = 3, random(-5..-1), Quadrant = 4, random(-5..-1), \"N/A\")", "description": "", "templateType": "anything", "can_override": false}, "z": {"name": "z", "group": "Ungrouped variables", "definition": "a+b*i", "description": "", "templateType": "anything", "can_override": false}, "Modulus": {"name": "Modulus", "group": "Ungrouped variables", "definition": "precround(abs(z),3)", "description": "", "templateType": "anything", "can_override": false}, "Argument": {"name": "Argument", "group": "Ungrouped variables", "definition": "precround(arg(z),3)", "description": "", "templateType": "anything", "can_override": false}, "quadrant1advice": {"name": "quadrant1advice", "group": "Ungrouped variables", "definition": "\"As $z$ has positive real and imaginary parts it will be in the first quadrant (top right) on an argand diagram. This is the simplest case for calculating the argument. We can apply trigonometry to find $\\\\theta$.
\\nIn this case,
\\n$$
\\\\arg (z) = \\\\tan^{-1}\\\\left(\\\\frac{\\\\var{b}}{\\\\var{a}}\\\\right) = \\\\var{argument}.
$$
As $z$ has positive imaginary part and negative real part it will be in the second quadrant (top left) on an argand diagram. We can apply trigonometry to help find $\\\\theta$.
\\nIn this case, you can calculate the \\\"missing bit\\\" and take it away from $\\\\pi$ radians,
\\n$$
\\\\arg (z) =\\\\pi - \\\\tan^{-1}\\\\left(\\\\frac{\\\\var{b}}{\\\\var{-a}}\\\\right) = \\\\var{argument}.
$$
As $z$ has negative imaginary part and negative real part it will be in the third quadrant (bottom left) on an argand diagram. We can apply trigonometry to help find $\\\\theta$.
\\nIn this case, you can calculate the \\\"missing bit\\\" and take it away from $\\\\pi$ radians, before converting to a negative argument (as it is measured clockwise from the real axis).
\\n$$
\\\\arg (z) =-\\\\left(\\\\pi - \\\\tan^{-1}\\\\left(\\\\frac{\\\\var{-b}}{\\\\var{-a}}\\\\right)\\\\right) = \\\\var{argument}.
$$
As $z$ has negative imaginary part and positive real part it will be in the fourth quadrant (bottom left) on an argand diagram. We can apply trigonometry to find $\\\\theta$.
\\nIn this case, you can calculate the angle, before converting to a negative argument (as it is measured clockwise from the real axis).
\\n$$
\\\\arg (z) =-\\\\left(\\\\tan^{-1}\\\\left(\\\\frac{\\\\var{-b}}{\\\\var{-a}}\\\\right)\\\\right) = \\\\var{argument}.
$$
$z = \\simplify[std]{{z}}$
\n$\\lvert{z}\\rvert =$ [[0]]
\n$\\arg{(z)} = $ [[1]]
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Modulus", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{modulus}", "maxValue": "{modulus}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Argument", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{argument}", "maxValue": "{argument}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false, "inlineCorrectAnswer": true}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "resources": ["question-resources/Gemini_Generated_Image_67zib967zib967zi.png", "question-resources/Gemini_Generated_Image_lzhf4ylzhf4ylzhf.png", "question-resources/first quadrant.png", "question-resources/second quadrant.png", "question-resources/third quadrant.png", "question-resources/fourth quadrant.png"]}]}], "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}]}