Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 91 lines (82 sloc) 3.122 kB
aaee042 @beneater Add unit circle exercise
beneater authored
1 <!DOCTYPE html>
bd7ac37 @beneater Remove conflicting jquery-color from utils
beneater authored
2 <html data-require="math math-format graphie unit-circle">
aaee042 @beneater Add unit circle exercise
beneater authored
3 <head>
65eec09 @spicyj Content-Type meta tag for libxml2 compatibility
spicyj authored
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
aaee042 @beneater Add unit circle exercise
beneater authored
5 <title>Unit circle</title>
6 <script src="../khan-exercise.js"></script>
7 </head>
8 <body>
9 <div class="exercise">
10
11 <div class="problems">
12 <div id="degrees">
13 <div class="vars">
14 <var id="DEGREES">true</var>
15 <var id="ANGLE">randRangeNonZero( -90, 90 ) * 5</var>
16 <var id="PRETTY_ANGLE">ANGLE + "^{\\circ}"</var>
17 <var id="FN">randFromArray( [ "cos", "sin" ] )</var>
18 <var id="FNNAME">{ "cos": "cosine", "sin": "sine"}[FN]</var>
19 <var id="COORD">{ "cos": "x", "sin": "y"}[FN]</var>
20 <var id="SOLUTION">roundTo(3, { "cos": Math.cos(ANGLE * (Math.PI/180)), "sin": Math.sin(ANGLE * (Math.PI/180)) }[FN])
21 </var>
22 </div>
23
24 <p class="question">
d6fbb1a @spicyj Unit circle tweaks
spicyj authored
25 <code>\<var>FN</var>(<var>PRETTY_ANGLE</var>) = \text{?}</code>
aaee042 @beneater Add unit circle exercise
beneater authored
26 </p>
27
28 <div class="problem">
29 <p>
fee2760 @pkuperman Clarify unit circle instruction, re #3395
pkuperman authored
30 Move the orange point around the unit circle and select an angle in order to find the <var>FNNAME</var> value above.
aaee042 @beneater Add unit circle exercise
beneater authored
31 </p>
32 <div class="graphie" id="unitcircle">
33 initUnitCircle( DEGREES );
34 </div>
35 </div>
36
37 <div class="solution" data-type="decimal" data-inexact data-max-error="0.001"><var>SOLUTION</var></div>
38
39 <div class="hints">
40 <p>
41 To find the <var>FNNAME</var> using the unit circle, first find the angle.
42 Drag the orange point around the circle until <code><var>PRETTY_ANGLE</var></code> is selected.
43 </p>
44 <div>
45 <p>
46 The correct angle is selected. Remember, the <var>FNNAME</var> of an angle is represented by the
47 <code><var>COORD</var></code> coordinate of a point on the unit circle.
48 </p>
49 <div class="graphie" data-update="unitcircle">
50 goToAngle( ANGLE );
51 </div>
52 </div>
53 <div>
54 <p>
55 The <code><var>COORD</var></code> coordinate of the point is <code><var>SOLUTION</var></code>,
56 so <code><var>FN</var>(<var>PRETTY_ANGLE</var>) = <var>SOLUTION</var></code>.
57 </p>
58 <div class="graphie" data-update="unitcircle">
59 goToAngle( ANGLE );
60 showCoordinates( ANGLE );
61 </div>
62 </div>
63 </div>
64 </div>
65
66
67 <div id="radians" data-type="degrees">
68 <div class="vars">
69 <var id="DEGREES">false</var>
70 <var id="ANGLE">randFromArray([
71 -6*PI/2, -5*PI/2, -7*PI/3, -9*PI/4,
72 -2*PI, -11*PI/6, -7*PI/4, -5*PI/3, -3*PI/2, -4*PI/3, -5*PI/4, -7*PI/6,
73 -PI, -5*PI/6, -3*PI/4, -2*PI/3, -PI/2, -PI/3, -PI/4, -PI/6, -PI/12,
74 PI/12, PI/6, PI/4, PI/3, PI/2, 2*PI/3, 3*PI/4, 5*PI/6, PI,
75 7*PI/6, 5*PI/4, 4*PI/3, 3*PI/2, 5*PI/3, 7*PI/4, 11*PI/6, 2*PI,
f9d1c59 @beneater Fix #3413 - Stray comma confused IE
beneater authored
76 9*PI/4, 7*PI/3, 5*PI/2, 6*PI/2
aaee042 @beneater Add unit circle exercise
beneater authored
77 ])</var>
78 <var id="PRETTY_ANGLE">piFraction(ANGLE)</var>
79 <var id="FN">randFromArray( [ "cos", "sin" ] )</var>
80 <var id="FNNAME">{ "cos": "cosine", "sin": "sine"}[FN]</var>
81 <var id="COORD">{ "cos": "x", "sin": "y"}[FN]</var>
82 <var id="SOLUTION">roundTo(3, { "cos": Math.cos(ANGLE), "sin": Math.sin(ANGLE) }[FN])
83 </var>
84 </div>
85 </div>
86
87 </div>
88 </div>
89 </body>
90 </html>
Something went wrong with that request. Please try again.