// Numbas version: finer_feedback_settings {"name": "De Moivre's Theorem: $n$th roots of a complex number", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "variable_groups": [], "preamble": {"js": "", "css": ""}, "tags": [], "extensions": [], "name": "De Moivre's Theorem: $n$th roots of a complex number", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "
Find the $\\var{n}$th roots of $\\var{z1}$.
\nImportant: When calculating the roots, you must use non-truncated values for the modulus and argument calculated in parts (i) and (ii) and not the approximated values, otherwise the final answer may not be correct.
\nFor the purposes of this question all arguments of complex numbers are between $0$ and $2\\pi$ radians.
", "parts": [{"unitTests": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0, "prompt": "Find the modulus and argument of $\\var{z1}$ to 3 decimal places.
\n(i) $|\\var{z1}|\\;=\\;$ [[0]], to 3 decimal places.
\n(ii) $\\arg(\\var{z1})\\;=\\;$[[1]] radians, to 3 decimal places.
\nHence find the following $\\var{n}$th roots of $\\var{z1}$ i.e. solve for $z$, $z^\\var{n}=\\var{z1}$.
\nHow many roots are there? [[2]]
\nAll the roots have the same modulus.
\nInput the modulus here: [[3]] (to 3 decimal places).
\nWhat is the argument of the root with the least argument? [[4]] radians (to 3 decimal places)
\nWhat is the argument of the root with the greatest argument? [[5]] radians (to 3 decimal places).
\nIf the roots are ordered in terms of their increasing arguments, what is the angle between successive roots? [[6]] radians (to 3 decimal places).
", "showFeedbackIcon": true, "scripts": {}, "type": "gapfill", "variableReplacements": [], "sortAnswers": false, "extendBaseMarkingAlgorithm": true, "gaps": [{"precisionPartialCredit": 0, "strictPrecision": false, "variableReplacementStrategy": "originalfirst", "showPrecisionHint": false, "unitTests": [], "minValue": "ans1-tol", "extendBaseMarkingAlgorithm": true, "precisionMessage": "You have not given your answer to the correct precision.", "correctAnswerStyle": "plain", "showFeedbackIcon": true, "type": "numberentry", "variableReplacements": [], "mustBeReducedPC": 0, "precision": "3", "showCorrectAnswer": true, "marks": 1, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "maxValue": "ans1+tol", "precisionType": "dp", "mustBeReduced": false, "correctAnswerFraction": false, "allowFractions": false, "customMarkingAlgorithm": ""}, {"precisionPartialCredit": 0, "strictPrecision": false, "variableReplacementStrategy": "originalfirst", "showPrecisionHint": false, "unitTests": [], "minValue": "arg1-tol", "extendBaseMarkingAlgorithm": true, "precisionMessage": "You have not given your answer to the correct precision.", "correctAnswerStyle": "plain", "showFeedbackIcon": true, "type": "numberentry", "variableReplacements": [], "mustBeReducedPC": 0, "precision": "3", "showCorrectAnswer": true, "marks": 1, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "maxValue": "arg1+tol", "precisionType": "dp", "mustBeReduced": false, "correctAnswerFraction": false, "allowFractions": false, "customMarkingAlgorithm": ""}, {"unitTests": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0.5, "correctAnswerFraction": false, "minValue": "n", "mustBeReducedPC": 0, "mustBeReduced": false, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "scripts": {}, "type": "numberentry", "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "maxValue": "n", "notationStyles": ["plain", "en", "si-en"], "allowFractions": false, "customMarkingAlgorithm": ""}, {"precisionPartialCredit": 0, "strictPrecision": true, "variableReplacementStrategy": "originalfirst", "showPrecisionHint": false, "unitTests": [], "minValue": "md1-tol", "extendBaseMarkingAlgorithm": true, "precisionMessage": "You have not given your answer to the correct precision.", "correctAnswerStyle": "plain", "showFeedbackIcon": true, "type": "numberentry", "variableReplacements": [], "mustBeReducedPC": 0, "precision": "3", "showCorrectAnswer": true, "marks": 1, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "maxValue": "md1+tol", "precisionType": "dp", "mustBeReduced": false, "correctAnswerFraction": false, "allowFractions": false, "customMarkingAlgorithm": ""}, {"precisionPartialCredit": 0, "strictPrecision": false, "variableReplacementStrategy": "originalfirst", "showPrecisionHint": false, "unitTests": [], "minValue": "argr1-tol", "extendBaseMarkingAlgorithm": true, "precisionMessage": "You have not given your answer to the correct precision.", "correctAnswerStyle": "plain", "showFeedbackIcon": true, "type": "numberentry", "variableReplacements": [], "mustBeReducedPC": 0, "precision": "3", "showCorrectAnswer": true, "marks": 1, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "maxValue": "argr1+tol", "precisionType": "dp", "mustBeReduced": false, "correctAnswerFraction": false, "allowFractions": false, "customMarkingAlgorithm": ""}, {"precisionPartialCredit": 0, "strictPrecision": false, "variableReplacementStrategy": "originalfirst", "showPrecisionHint": false, "unitTests": [], "minValue": "argrn-tol", "extendBaseMarkingAlgorithm": true, "precisionMessage": "You have not given your answer to the correct precision.", "correctAnswerStyle": "plain", "showFeedbackIcon": true, "type": "numberentry", "variableReplacements": [], "mustBeReducedPC": 0, "precision": "3", "showCorrectAnswer": true, "marks": 1, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "maxValue": "argrn+tol", "precisionType": "dp", "mustBeReduced": false, "correctAnswerFraction": false, "allowFractions": false, "customMarkingAlgorithm": ""}, {"precisionPartialCredit": 0, "strictPrecision": false, "variableReplacementStrategy": "originalfirst", "showPrecisionHint": false, "unitTests": [], "minValue": "delang-tol", "extendBaseMarkingAlgorithm": true, "precisionMessage": "You have not given your answer to the correct precision.", "correctAnswerStyle": "plain", "showFeedbackIcon": true, "type": "numberentry", "variableReplacements": [], "mustBeReducedPC": 0, "precision": "3", "showCorrectAnswer": true, "marks": 0.5, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "maxValue": "delang+tol", "precisionType": "dp", "mustBeReduced": false, "correctAnswerFraction": false, "allowFractions": false, "customMarkingAlgorithm": ""}], "customMarkingAlgorithm": ""}], "variables": {"q4": {"group": "Ungrouped variables", "name": "q4", "definition": "'The complex number is in the fourth quadrant.'", "description": "", "templateType": "anything"}, "b1": {"group": "Ungrouped variables", "name": "b1", "definition": "s2*random(1..5)", "description": "", "templateType": "anything"}, "n": {"group": "Ungrouped variables", "name": "n", "definition": "random(3,4,5,6,7)", "description": "", "templateType": "anything"}, "delang": {"group": "Ungrouped variables", "name": "delang", "definition": "precround(2*pi/n,3)", "description": "", "templateType": "anything"}, "targ1": {"group": "Ungrouped variables", "name": "targ1", "definition": "arg(z1)+adj", "description": "", "templateType": "anything"}, "argr1": {"group": "Ungrouped variables", "name": "argr1", "definition": "precround(targ1/n,3)", "description": "", "templateType": "anything"}, "tol": {"group": "Ungrouped variables", "name": "tol", "definition": "0.001", "description": "", "templateType": "anything"}, "argrn": {"group": "Ungrouped variables", "name": "argrn", "definition": "precround((targ1+2*pi*(n-1))/n,3)", "description": "", "templateType": "anything"}, "q1": {"group": "Ungrouped variables", "name": "q1", "definition": "'The complex number is in the first quadrant.'", "description": "", "templateType": "anything"}, "z1": {"group": "Ungrouped variables", "name": "z1", "definition": "a1+b1*i", "description": "", "templateType": "anything"}, "arg1": {"group": "Ungrouped variables", "name": "arg1", "definition": "precround(targ1,3)", "description": "", "templateType": "anything"}, "q3": {"group": "Ungrouped variables", "name": "q3", "definition": "'The complex number is in the third quadrant.'", "description": "", "templateType": "anything"}, "a1": {"group": "Ungrouped variables", "name": "a1", "definition": "s1*random(1..5)", "description": "", "templateType": "anything"}, "md1": {"group": "Ungrouped variables", "name": "md1", "definition": "precround((abs(z1))^(1/n),3)", "description": "", "templateType": "anything"}, "s1": {"group": "Ungrouped variables", "name": "s1", "definition": "switch(t=1,1,t=4,1,-1)", "description": "", "templateType": "anything"}, "adj": {"group": "Ungrouped variables", "name": "adj", "definition": "if(arg(z1)<0,2*pi,0)", "description": "", "templateType": "anything"}, "t": {"group": "Ungrouped variables", "name": "t", "definition": "random(1..4)", "description": "", "templateType": "anything"}, "s2": {"group": "Ungrouped variables", "name": "s2", "definition": "switch(t=1,-1,t=3,-1,1)", "description": "", "templateType": "anything"}, "q2": {"group": "Ungrouped variables", "name": "q2", "definition": "'The complex number is in the second quadrant.'", "description": "", "templateType": "anything"}, "ans1": {"group": "Ungrouped variables", "name": "ans1", "definition": "precround(abs(z1),3)", "description": "", "templateType": "anything"}, "m1": {"group": "Ungrouped variables", "name": "m1", "definition": "switch(t=1,q4,t=2,q2,t=3,q3,q1)", "description": "", "templateType": "anything"}}, "metadata": {"description": "Find modulus and argument of the complex number $z_1$ and find the $n$th roots of $z_1$ where $n=5,\\;6$ or $7$.
", "licence": "Creative Commons Attribution 4.0 International"}, "advice": "Please consult the relevant examples in the lecture notes.
", "ungrouped_variables": ["q1", "argrn", "q3", "q2", "q4", "md1", "arg1", "s2", "s1", "targ1", "n", "a1", "m1", "t", "tol", "ans1", "delang", "adj", "z1", "argr1", "b1"], "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Peter Johnston", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/771/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Peter Johnston", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/771/"}]}