# Khan/khan-exercises

### Subversion checkout URL

You can clone with HTTPS or Subversion.

Fetching contributors…

Cannot retrieve contributors at this time

192 lines (167 sloc) 8.406 kb
 Trigonometry 0.5
shuffle(randFromArray([[3,4], [6,8], [5,12], [7, 24], [8, 15], [10, 24], [12,16]])) BC sqrt(AC * AC + BC * BC) randFromArray([ "ABC", "BAC" ]) (ANGLE.substring(0,1) + ANGLE.substring(2)) (function(){ if ( OPPOSITE_NAME === "AC" ){ return AC; } else if ( OPPOSITE_NAME === "BC" ){ return CB; } return AB; })() "AB" AB ANGLE.substring(1) (function(){ if ( ADJACENT_NAME === "AC" ){ return AC; } else if ( ADJACENT_NAME === "BC" ){ return BC; } return AB; })() fraction( OPPOSITE_VALUE, ADJACENT_VALUE, false, false, false, false) OPPOSITE_VALUE / ADJACENT_VALUE fraction(OPPOSITE_VALUE, AB) OPPOSITE_VALUE / AB fraction(ADJACENT_VALUE, AB) ADJACENT_VALUE / AB

\overline{AC} is AC units long

\overline{BC} is BC units long

\overline{AB} is AB units long

What is \sin(\angle ANGLE) ?

betterTriangle( BC, AC, "A", "B", "C", BC, AC, AB ); path([ [ 0.4, 0 ], [ 0.4, 0.4 ], [ 0, 0.4 ] ]);
SIN

SOH CAH TOA

Sin = Opposite over Hypotenuse

opposite = \overline{OPPOSITE_NAME} = OPPOSITE_VALUE

hypotenuse = \overline{HYPOTENUSE_NAME} = AB

\sin(\angle ANGLE)=SIMPLE_SIN

\overline{AC} is AC units long

\overline{BC} is BC units long

\overline{AB} is AB units long

What is \cos(\angle ANGLE) ?

betterTriangle( BC, AC, "A", "B", "C", BC, AC, AB ); path([ [ 0.4, 0 ], [ 0.4, 0.4 ], [ 0, 0.4 ] ]);
COS

SOH CAH TOA

hypotenuse = \overline{HYPOTENUSE_NAME} = AB

\cos(\angle ANGLE )=SIMPLE_COS

\overline{AC} is AC units long

\overline{BC} is BC units long

\overline{AB} is AB units long

What is \tan(\angle ANGLE) ?

betterTriangle( BC, AC, "A", "B", "C", BC, AC, AB ); path([ [ 0.4, 0 ], [ 0.4, 0.4 ], [ 0, 0.4 ] ]);
TAN

SOH CAH TOA