Skip to content
This repository
Newer
Older
100644 58 lines (50 sloc) 2.648 kb
acc00894 » igorT
2011-07-21 Trig identity exercise
1 <!DOCTYPE html>
2 <html data-require="math math-format convert-values">
3 <head>
4e4cb9b1 » beneater
2012-04-10 lint: tabs->spaces and jQuery->$ for exercises
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>Trig identities 1</title>
6 <script src="../khan-exercise.js"></script>
acc00894 » igorT
2011-07-21 Trig identity exercise
7 </head>
8 <body>
4e4cb9b1 » beneater
2012-04-10 lint: tabs->spaces and jQuery->$ for exercises
9 <div class="exercise">
10 <div class="vars">
11 <var id="START_TYPE">trigTypes[randRange(0,trigTypes.length-1)]</var>
12
13 <var id="END_TYPE" data-ensure="START_TYPE !== END_TYPE && !((START_TYPE.name === 'sin' || START_TYPE.name === 'cos') && END_TYPE.name === 'tan' ) ">trigTypes[randRange(0,trigTypes.length-1)]</var>
14 <var id="END_NAME">END_TYPE.name</var>
15 <var id="FUN_NAME">START_TYPE.name</var>
16 <var id="ANGLE">function(){
17 if ( START_TYPE.name === "tan" ){
18 return randFromArray([0,30,45,60]);
19 }
20 else if ( START_TYPE.name === "sec" ){
21 return randFromArray([0,30,45,60]);
22 }
23 else if (START_TYPE.name === "csc" ){
24 return randFromArray([30,45,60,90]);
25 }
26 else{
27 return randFromArray([0,30,45,60,90]);
28 }}()
29
30 </var>
31 <var id="FUN_VALUE">START_TYPE.print( ANGLE )</var>
32 <var id="SOLUTION">END_TYPE.print( ANGLE )</var>
33 <var id="STEPS">findSteps(START_TYPE , END_TYPE, ANGLE)</var>
34
35 <var id="WRONG_ANGLE1" data-ensure="ANGLE !== WRONG_ANGLE1"> randFromArray([0,30,45,60,90])</var>
36 <var id="WRONG_ANGLE2" data-ensure="ANGLE !== WRONG_ANGLE2 && WRONG_ANGLE2 !== WRONG_ANGLE1"> randFromArray([0,30,45,60,90])</var>
37 <var id="NUM_ANSWERS">["","","","","","","","","","","",""]</var>
38
39 </div>
40
41 <div class="problems">
42 <div>
43 <p class="question">Given that x is in the first quadrant and <code> \<var>FUN_NAME</var> x </code> is <code><var>FUN_VALUE</var></code>, what is <code> \<var>END_NAME</var> x</code> ?</p>
44
45
46 <p class="solution"><code><var>SOLUTION</var></code></p>
47 <ul class="choices" data-show="4" data-none="true">
48 <li data-each="NUM_ANSWERS"><code><var>trigTypes[randRange(0,trigTypes.length-1)].print( randFromArray([0,30,45,60,90]) )</var></code></li>
49 </ul>
50 </div>
51 </div>
52
53 <div class="hints">
54 <div data-each="STEPS as step"><p data-each="step as value"><code><var>value</var></code></p><hr></div>
55 </div>
56 </div>
acc00894 » igorT
2011-07-21 Trig identity exercise
57 </body>
58 </html>
Something went wrong with that request. Please try again.