Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 59 lines (50 sloc) 2.204 kB
acc0089 @igorT Trig identity exercise
igorT authored
1 <!DOCTYPE html>
2 <html data-require="math math-format convert-values">
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">
07d95d3 @spicyj Rename EVERYTHING; closes #323.
spicyj authored
5 <title>Trig identities 1</title>
acc0089 @igorT Trig identity exercise
igorT authored
6 <script src="../khan-exercise.js"></script>
7 </head>
8 <body>
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>
a6ae23f @dneelyep Fixed typos mentioned in issue #6502
dneelyep authored
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>
c2cb4db @spicyj Whitespace :)
spicyj authored
44
acc0089 @igorT Trig identity exercise
igorT authored
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>
57 </body>
58 </html>
Something went wrong with that request. Please try again.