// Numbas version: exam_results_page_options {"name": "Exact values for sin, cos, tan (0 to 330, degrees)", "extensions": [], "custom_part_types": [], "resources": [["question-resources/exact_values.svg", "/srv/numbas/media/question-resources/exact_values.svg"], ["question-resources/unit_circle_working.svg", "/srv/numbas/media/question-resources/unit_circle_working.svg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["theta"], "name": "Exact values for sin, cos, tan (0 to 330, degrees)", "tags": [], "preamble": {"css": "", "js": ""}, "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 $30^\\circ$, $45^\\circ$ and $60^\\circ$.

\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
$30^\\circ$$45^\\circ$$60^\\circ$
 
$\\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(210^\\circ)$, $\\cos(210^\\circ)$ and $\\tan(210^\\circ)$ we first draw the following:

\n

\n

From this diagram, we can see that $\\cos(210^\\circ)=-\\cos(30^\\circ)$, and $\\sin(210^\\circ)=-\\sin(30^\\circ)$ 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(210^\\circ)=-\\cos(30^\\circ)=-\\dfrac{\\sqrt{3}}{2},\\] \\[\\sin(210^\\circ)=-\\sin(30^\\circ)=-\\dfrac{1}{2},\\] and finally \\[\\tan(210^\\circ)=\\dfrac{\\sin(210^\\circ)}{\\cos(210^\\circ)}=\\dfrac{-\\frac{1}{2}}{-\\frac{\\sqrt{3}}{2}}=\\dfrac{1}{\\sqrt{3}}.\\]

", "rulesets": {}, "parts": [{"prompt": "

The exact value of $\\sin(\\var{theta}^\\circ)$ is [[0]].

\n

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

\n

Is $\\tan(\\var{theta}^\\circ)$ defined? [[2]]

\n
\n

The exact value of $\\tan(\\var{theta}^\\circ)$ is  [[3]].

\n
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"notallowed": {"message": "", "showStrings": true, "strings": [".", "sin", "cos", "tan", "cosec", "sec", "cot"], "partialCredit": 0}, "vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": false, "scripts": {}, "answer": "sin({theta}/180*pi)", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"notallowed": {"message": "", "showStrings": true, "strings": [".", "sin", "cos", "tan", "cosec", "sec", "cot"], "partialCredit": 0}, "vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": false, "scripts": {}, "answer": "cos({theta}/180*pi)", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"displayColumns": 0, "matrix": "if(theta=90 or theta=270, [0,1],[1,0])", "shuffleChoices": false, "variableReplacements": [], "choices": ["

Yes

", "

No

"], "variableReplacementStrategy": "originalfirst", "maxMarks": 0, "showCorrectAnswer": true, "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];"}}, "marks": 0, "type": "1_n_2", "displayType": "radiogroup", "minMarks": 0}, {"notallowed": {"message": "", "showStrings": true, "strings": [".", "sin", "cos", "tan", "cosec", "sec", "cot"], "partialCredit": 0}, "vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": false, "scripts": {}, "answer": "{tan({theta}/180*pi)}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": false, "scripts": {"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}"}, "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);"}}, "marks": 0, "type": "gapfill"}], "extensions": [], "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(60^\\circ)$, which is $\\dfrac{\\sqrt{3}}{2}$, you would input sqrt(3)/2

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"theta": {"definition": "random(135,150)", "templateType": "anything", "group": "Ungrouped variables", "name": "theta", "description": ""}}, "metadata": {"description": "

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

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Marlon Arcila", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/321/"}]}]}], "contributors": [{"name": "Marlon Arcila", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/321/"}]}