Skip to content

# publicKhan/khan-exercises

### Subversion checkout URL

You can clone with HTTPS or Subversion.

Fetching contributors…

Cannot retrieve contributors at this time

file 87 lines (85 sloc) 3.997 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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 `        Comparing absolute values

randFromArray([[ "|", "|" ], [ "|", "" ], [ "", "|" ]])                    randRange(-10, 10)                    ( NUM_1 < 0 ) ? randRange(0, 10) : randRange(-10, -1)                    ABS_1 ? abs( NUM_1 ) : NUM_1                    ABS_2 ? abs( NUM_2 ) : NUM_2                    (function() {                        if ( NUM_1_VALUE === NUM_2_VALUE ) {                            return "=";                        }                        return NUM_1_VALUE < NUM_2_VALUE ? "<" : ">";                    })()

Fill in the blank.

ABS_1 + NUM_1 + ABS_1 ____ ABS_2 + NUM_2 + ABS_2

SOLUTION

• <
•
• >
•
• =
•

drawNumberLine( NUM_1 );

The "absolute value" can be viewed as the distance from 0. The distance from NUM_1 to 0 is NUM_1_VALUE so |NUM_1| = NUM_1_VALUE

drawNumberLine( NUM_2 );

The "absolute value" can be viewed as the distance from 0. The distance from NUM_2 to 0 is NUM_2_VALUE so |NUM_2| = NUM_2_VALUE

Is NUM_1_VALUE less than, greater than, or equal to NUM_2_VALUE?

NUM_1_VALUE SOLUTION NUM_2_VALUE

ABS_1NUM_1ABS_1 SOLUTION ABS_2NUM_2ABS_2

`
Something went wrong with that request. Please try again.