Skip to content

# Khan/khan-exercises

### Subversion checkout URL

You can clone with
or
.
Fetching contributors…

Cannot retrieve contributors at this time

91 lines (82 sloc) 3.122 kB
 Unit circle
true randRangeNonZero( -90, 90 ) * 5 ANGLE + "^{\\circ}" randFromArray( [ "cos", "sin" ] ) { "cos": "cosine", "sin": "sine"}[FN] { "cos": "x", "sin": "y"}[FN] roundTo(3, { "cos": Math.cos(ANGLE * (Math.PI/180)), "sin": Math.sin(ANGLE * (Math.PI/180)) }[FN])

\FN(PRETTY_ANGLE) = \text{?}

Move the orange point around the unit circle and select an angle in order to find the FNNAME value above.

initUnitCircle( DEGREES );
SOLUTION

To find the FNNAME using the unit circle, first find the angle. Drag the orange point around the circle until PRETTY_ANGLE is selected.

The correct angle is selected. Remember, the FNNAME of an angle is represented by the COORD coordinate of a point on the unit circle.

goToAngle( ANGLE );

The COORD coordinate of the point is SOLUTION, so FN(PRETTY_ANGLE) = SOLUTION.

goToAngle( ANGLE ); showCoordinates( ANGLE );
false randFromArray([ -6*PI/2, -5*PI/2, -7*PI/3, -9*PI/4, -2*PI, -11*PI/6, -7*PI/4, -5*PI/3, -3*PI/2, -4*PI/3, -5*PI/4, -7*PI/6, -PI, -5*PI/6, -3*PI/4, -2*PI/3, -PI/2, -PI/3, -PI/4, -PI/6, -PI/12, PI/12, PI/6, PI/4, PI/3, PI/2, 2*PI/3, 3*PI/4, 5*PI/6, PI, 7*PI/6, 5*PI/4, 4*PI/3, 3*PI/2, 5*PI/3, 7*PI/4, 11*PI/6, 2*PI, 9*PI/4, 7*PI/3, 5*PI/2, 6*PI/2 ]) piFraction(ANGLE) randFromArray( [ "cos", "sin" ] ) { "cos": "cosine", "sin": "sine"}[FN] { "cos": "x", "sin": "y"}[FN] roundTo(3, { "cos": Math.cos(ANGLE), "sin": Math.sin(ANGLE) }[FN])
Something went wrong with that request. Please try again.