// Numbas version: exam_results_page_options {"name": "Exact values for sin, cos, tan (0 to 2pi, radians)", "extensions": [], "custom_part_types": [], "resources": [["question-resources/exact_values_radians_0wJX122.svg", "/srv/numbas/media/question-resources/exact_values_radians_0wJX122.svg"], ["question-resources/unit_circle_working_radians.svg", "/srv/numbas/media/question-resources/unit_circle_working_radians.svg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Exact values for sin, cos, tan (0 to 2pi, radians)", "variable_groups": [], "metadata": {"description": "

testing sin, cos, tan of  random(0,90,120,135,150,180,210,225,240,270,300,315,330) degrees but in radians

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "ungrouped_variables": ["theta"], "functions": {}, "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "type": "question", "statement": "

Often we prefer to work with exact values rather than approximations from a calculator. In this question we require you input your answer without decimals and without entering the words sin, cos or tan. For example, to input the exact value of $\\sin\\left(\\frac{\\pi}{3}\\right)$, which is $\\dfrac{\\sqrt{3}}{2}$, you would input sqrt(3)/2

", "preamble": {"js": "", "css": ""}, "tags": [], "parts": [{"showFeedbackIcon": true, "marks": 0, "scripts": {"constructor": {"order": "after", "script": "// override the default 'submit' method for the part\n// we only want to submit gap 3 if the answer to gap 2 is \"yes\"\nthis.submit = Numbas.util.extend(function() {\n this.gaps[0].submit();\n this.gaps[1].submit();\n this.gaps[2].submit();\n if(this.gaps[2].yes) {\n this.gaps[3].submit();\n } else {\n this.gaps[3].answered = true;\n }\n},Part.prototype.submit);"}, "mark": {"order": "instead", "script": "var gaps = this.gaps;\n// if the student said \"yes\" to gap 2, then mark their factorisation\nif(gaps[2].yes) {\n this.__proto__.mark.apply(this);\n// otherwise, work out the credit based on the amounts awarded for the first three gaps\n} else {\n this.setCredit((gaps[0].credit*gaps[0].marks+gaps[1].credit*gaps[1].marks+gaps[2].credit*gaps[2].marks)/(gaps[0].marks+gaps[1].marks+gaps[2].marks));\n}"}}, "showCorrectAnswer": false, "prompt": "

The exact value of $\\sin\\left(\\var{theta[1]}\\right)$ is [[0]].

\n

The exact value of $\\cos\\left(\\var{theta[1]}\\right)$ is [[1]].

\n

Is $\\tan\\left(\\var{theta[1]}\\right)$ defined? [[2]]

\n
\n

The exact value of $\\tan\\left(\\var{theta[1]}\\right)$ is  [[3]].

\n
", "gaps": [{"scripts": {}, "answer": "sin({theta[0]})", "showpreview": true, "showFeedbackIcon": true, "vsetrangepoints": 5, "showCorrectAnswer": false, "variableReplacementStrategy": "originalfirst", "type": "jme", "vsetrange": [0, 1], "checkvariablenames": false, "marks": 1, "checkingaccuracy": 0.001, "notallowed": {"showStrings": true, "message": "", "strings": [".", "sin", "cos", "tan", "cosec", "sec", "cot"], "partialCredit": 0}, "expectedvariablenames": [], "variableReplacements": [], "checkingtype": "absdiff"}, {"scripts": {}, "answer": "cos({theta[0]})", "showpreview": true, "showFeedbackIcon": true, "vsetrangepoints": 5, "showCorrectAnswer": false, "variableReplacementStrategy": "originalfirst", "type": "jme", "vsetrange": [0, 1], "checkvariablenames": false, "marks": 1, "checkingaccuracy": 0.001, "notallowed": {"showStrings": true, "message": "", "strings": [".", "sin", "cos", "tan", "cosec", "sec", "cot"], "partialCredit": 0}, "expectedvariablenames": [], "variableReplacements": [], "checkingtype": "absdiff"}, {"choices": ["

Yes

", "

No

"], "maxMarks": 0, "scripts": {"mark": {"order": "instead", "script": "// apply the normal marking algorithm for this part\nthis.__proto__.mark.apply(this);\n// store whether the student said \"yes\" in an attribute that's easier to access\nthis.yes = this.ticks[0][0];"}}, "minMarks": 0, "displayType": "radiogroup", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "shuffleChoices": false, "showFeedbackIcon": true, "marks": 0, "displayColumns": 0, "matrix": "if(theta=90 or theta=270, [0,1],[1,0])", "variableReplacements": []}, {"scripts": {}, "answer": "{tan({theta[0]})}", "showpreview": true, "showFeedbackIcon": true, "vsetrangepoints": 5, "showCorrectAnswer": false, "variableReplacementStrategy": "originalfirst", "type": "jme", "vsetrange": [0, 1], "checkvariablenames": false, "marks": 1, "checkingaccuracy": 0.001, "notallowed": {"showStrings": true, "message": "", "strings": [".", "sin", "cos", "tan", "cosec", "sec", "cot"], "partialCredit": 0}, "expectedvariablenames": [], "variableReplacements": [], "checkingtype": "absdiff"}], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "type": "gapfill"}], "rulesets": {}, "advice": "

By drawing the following triangles we can determine the exact values of $\\sin$, $\\cos$ and $\\tan$ (and their reciprocals $\\csc$, $\\sec$, $\\cot$) for the angles $\\dfrac{\\pi}{6}$, $\\dfrac{\\pi}{4}$ and $\\dfrac{\\pi}{3}$.

\n

\n


Alternatively, one can memorise the following table: 

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\dfrac{\\pi}{6}$$\\dfrac{\\pi}{4}$$\\dfrac{\\pi}{3}$
 
$\\sin$$\\dfrac{1}{2}$$\\dfrac{1}{\\sqrt{2}}$$\\dfrac{\\sqrt{3}}{2}$
 
$\\cos$$\\dfrac{\\sqrt{3}}{2}$$\\dfrac{1}{\\sqrt{2}}$$\\dfrac{1}{2}$
 
$\\tan$$\\dfrac{1}{\\sqrt{3}}$$1$$\\sqrt{3}$
\n

\n

That combined with the unit circle definitions:

\n\n

and some understanding of congruent triangles:

\n
\n

\n

allows us to work out $\\sin$, $\\cos$ and $\\tan$ for certain angles regardless of what quadrant the point is in. Because whatever angle we are asked about, we can always use the triangle in the first quadrant to determine the side lengths and then consider the signs of the coordinates separately.

\n

\n

For example, to determine $\\sin\\left(\\frac{7\\pi}{6}\\right)$, $\\cos\\left(\\frac{7\\pi}{6}\\right)$ and $\\tan\\left(\\frac{7\\pi}{6}\\right)$ we first draw the following:

\n

\n

From this diagram, we can see that $\\cos\\left(\\frac{7\\pi}{6}\\right)=-\\cos\\left(\\frac{\\pi}{6}\\right)$, and $\\sin\\left(\\frac{7\\pi}{6}\\right)=-\\sin\\left(\\frac{\\pi}{6}\\right)$ since the triangles are congruent and we are in the 3rd quadrant where both the $x$ and $y$ values (and hence the $\\cos$ and $\\sin$ values) are negative. 

\n

But given we know these exact values, we can conclude \\[\\cos\\left(\\frac{7\\pi}{6}\\right)=-\\cos\\left(\\frac{\\pi}{6}\\right)=-\\dfrac{\\sqrt{3}}{2},\\] \\[\\sin\\left(\\frac{7\\pi}{6}\\right)=-\\sin\\left(\\frac{\\pi}{6}\\right)=-\\dfrac{1}{2},\\] and finally \\[\\tan\\left(\\frac{7\\pi}{6}\\right)=\\dfrac{\\sin\\left(\\frac{7\\pi}{6}\\right)}{\\cos\\left(\\frac{7\\pi}{6}\\right)}=\\dfrac{-\\frac{1}{2}}{-\\frac{\\sqrt{3}}{2}}=\\dfrac{1}{\\sqrt{3}}.\\]

", "variables": {"theta": {"templateType": "anything", "definition": "random([0,0],[pi/2,'\\$\\\\frac{\\\\pi}{2}\\$'],[2pi/3,'\\$\\\\frac{2\\\\pi}{3}\\$'],[3pi/4,'\\$\\\\frac{3\\\\pi}{4}\\$'],[5pi/6,'\\$\\\\frac{5\\\\pi}{6}\\$'],[pi,'\\$\\\\pi\\$'],[7pi/6,'\\$\\\\frac{7\\\\pi}{6}\\$'],[5pi/4,'\\$\\\\frac{5\\\\pi}{4}\\$'],[4pi/3,'\\$\\\\frac{4\\\\pi}{3}\\$'],[3pi/2,'\\$\\\\frac{3\\\\pi}{2}\\$'],[5pi/3,'\\$\\\\frac{5\\\\pi}{3}\\$'],[7pi/4,'\\$\\\\frac{7\\\\pi}{4}\\$'],[11pi/6,'\\$\\\\frac{11\\\\pi}{6}\\$'])", "description": "", "group": "Ungrouped variables", "name": "theta"}}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}