Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 58 lines (50 sloc) 2.648 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
<!DOCTYPE html>
<html data-require="math math-format convert-values">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Trig identities 1</title>
    <script src="../khan-exercise.js"></script>
</head>
<body>
    <div class="exercise">
        <div class="vars">
            <var id="START_TYPE">trigTypes[randRange(0,trigTypes.length-1)]</var>

            <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>
            <var id="END_NAME">END_TYPE.name</var>
            <var id="FUN_NAME">START_TYPE.name</var>
            <var id="ANGLE">function(){
                    if ( START_TYPE.name === "tan" ){
                        return randFromArray([0,30,45,60]);
                    }
                    else if ( START_TYPE.name === "sec" ){
                        return randFromArray([0,30,45,60]);
                    }
                    else if (START_TYPE.name === "csc" ){
                        return randFromArray([30,45,60,90]);
                    }
                    else{
                        return randFromArray([0,30,45,60,90]);
                    }}()

            </var>
            <var id="FUN_VALUE">START_TYPE.print( ANGLE )</var>
            <var id="SOLUTION">END_TYPE.print( ANGLE )</var>
            <var id="STEPS">findSteps(START_TYPE , END_TYPE, ANGLE)</var>

            <var id="WRONG_ANGLE1" data-ensure="ANGLE !== WRONG_ANGLE1"> randFromArray([0,30,45,60,90])</var>
            <var id="WRONG_ANGLE2" data-ensure="ANGLE !== WRONG_ANGLE2 && WRONG_ANGLE2 !== WRONG_ANGLE1"> randFromArray([0,30,45,60,90])</var>
            <var id="NUM_ANSWERS">["","","","","","","","","","","",""]</var>

        </div>

        <div class="problems">
            <div>
                <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>


                <p class="solution"><code><var>SOLUTION</var></code></p>
                <ul class="choices" data-show="4" data-none="true">
                        <li data-each="NUM_ANSWERS"><code><var>trigTypes[randRange(0,trigTypes.length-1)].print( randFromArray([0,30,45,60,90]) )</var></code></li>
                </ul>
            </div>
        </div>

        <div class="hints">
                <div data-each="STEPS as step"><p data-each="step as value"><code><var>value</var></code></p><hr></div>
        </div>
    </div>
</body>
</html>
Something went wrong with that request. Please try again.