# Khan/khan-exercises

### Subversion checkout URL

You can clone with HTTPS or Subversion.

Older
100644 161 lines (140 sloc) 7.652 kb
 922146a Add exercise: Comparing improper fractions and mixed numbers. Minor m… mwahl authored Dec 22, 2011 1 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 2 cde9e9f Re-run the exercises through the updated cleaner. jeresig authored Apr 24, 2013 3 0f0c630 Clean up the exercise files using the new cleaning utility. (II) cbhl authored Apr 16, 2013 4 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 5 Comparing improper fractions and mixed numbers ac1415e Use requirejs for module loading spicyj authored Mar 5, 2014 6 922146a Add exercise: Comparing improper fractions and mixed numbers. Minor m… mwahl authored Dec 23, 2011 7 8 7fab1d8 Whitespace spicyj authored Dec 31, 2011 9 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 10
5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 11
12 randRange(1, 5) 13 WHOLE 14 randRangeWeighted(2, 5, 2, 0.4) 15 randFromArray([[4, 6, 8, 10, 12], [6, 12], [8, 12], [10]][DENOM1 - 2]) 16 DENOM2 / DENOM1 17 18 randRange(0, 1) 19 ORDER ? DENOM1 : DENOM2 20 ORDER ? DENOM2 : DENOM1 21 22 randRange(1, M_DENOM - 1) 23 randRange(1, I_DENOM - 1) 24 WHOLE * I_DENOM + I_NUM2 25 26 (function() { c06fb9c Compare the correct number; also account for machine imprecision just… beneater authored Nov 25, 2013 27 var n1 = WHOLE2 + M_NUM / M_DENOM; 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 28 var n2 = I_NUM / I_DENOM; 29 c06fb9c Compare the correct number; also account for machine imprecision just… beneater authored Nov 26, 2013 30 if (n1 - n2 > 1e-9) { 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 31 return [">", \$._("is more than")]; c06fb9c Compare the correct number; also account for machine imprecision just… beneater authored Nov 26, 2013 32 } else if (abs(n1 - n2) < 1e-9) { 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 33 return ["=", \$._("is equal to")]; 34 } 35 else { 36 return ["<", \$._("is less than")]; 37 } 38 })() 39 40
41 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 42
43
44
e25fc49 Make it clear that question is about a mixed number petercollingridge authored May 14, 2014 45

Fill in the blank to compare the mixed number and the fraction.

4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 46

5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 47 WHOLE2\dfrac{M_NUM}{M_DENOM} 48 ____\space \dfrac{I_NUM}{I_DENOM} 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 49

50
5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 51 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 52

SOLUTION

0f0c630 Clean up the exercise files using the new cleaning utility. (II) cbhl authored Apr 16, 2013 53
4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 54
• <
• 55
• >
• 5ccb62f Reorder to <, >, = for consistency with others spicyj authored Aug 7, 2013 56
• =
• 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 57
5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 58 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 59
5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 60
61

\dfrac{I_DENOM * WHOLE}{I_DENOM} = WHOLE

62

2a45da4 lint beneater authored Nov 25, 2013 63 So \dfrac{I_NUM}{I_DENOM} is 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 64 \dfrac{I_NUM2}{I_DENOM} more than WHOLE 65

66
67 68

2a45da4 lint beneater authored Nov 25, 2013 69 WHOLE2\dfrac{M_NUM}{M_DENOM} is 70 \dfrac{M_NUM}{M_DENOM} more than WHOLE2 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 71

72 73

2a45da4 lint beneater authored Nov 25, 2013 74 Which is bigger, \dfrac{M_NUM}{M_DENOM} 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 75 or \dfrac{I_NUM2}{I_DENOM} ? 76

77 78
79

2a45da4 lint beneater authored Nov 25, 2013 80 \dfrac{M_NUM}{M_DENOM} is the same thing as 81 \dfrac{M_NUM * F}{M_DENOM * F} 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 82

83 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 84
5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 85
86 init({ range: [[-0.1, 1], [0, 2.5]], scale: [400, 50] }); 87 rectchart([M_NUM * F, (M_DENOM - M_NUM) * F], ["#e00", "#999"], 1.5); 88 rectchart([I_NUM2, I_DENOM - I_NUM2], ["#e00", "#999"], 0); 89 label([0, 2], "\\dfrac{" + (M_NUM * F) + "}{" + (M_DENOM * F) + "}", "left"); 90 label([0, 0.5], "\\dfrac{" + I_NUM2 + "}{" + I_DENOM + "}", "left"); 91
92
93
94
95

2a45da4 lint beneater authored Nov 25, 2013 96 \dfrac{I_NUM2}{I_DENOM} is the same thing as 97 \dfrac{I_NUM2 * F}{I_DENOM * F} 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 98

99 100
101 init({ range: [[-0.1, 1], [0, 2.5]], scale: [400, 50] }); 102 rectchart([M_NUM, M_DENOM - M_NUM], ["#e00", "#999"], 1.5); 103 rectchart([I_NUM2 * F, (I_DENOM - I_NUM2) * F], ["#e00", "#999"], 0); 104 label([0, 2], "\\dfrac{" + M_NUM + "}{" + M_DENOM + "}", "left"); 105 label([0, 0.5], "\\dfrac{" + (I_NUM2 * F) + "}{" + (I_DENOM * F) + "}", "left"); 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 106
107
108 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 109
110

2a45da4 lint beneater authored Nov 25, 2013 111 \dfrac{M_NUM * F}{M_DENOM * F} COMPARISON 112 \dfrac{I_NUM2}{I_DENOM}. 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 113

114

2a45da4 lint beneater authored Nov 25, 2013 115 \dfrac{M_NUM}{M_DENOM} COMPARISON 116 \dfrac{I_NUM2 * F}{I_DENOM * F}. 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 117

118

2a45da4 lint beneater authored Nov 25, 2013 119 Therefore \dfrac{M_NUM}{M_DENOM} COMPARISON 120 \dfrac{I_NUM2}{I_DENOM}. 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 121

122
123 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 124

5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 125 Therefore WHOLE2\dfrac{M_NUM}{M_DENOM} 2a45da4 lint beneater authored Nov 25, 2013 126 SOLUTION \dfrac{I_NUM}{I_DENOM} 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 127

5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 128 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 129
5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 130
131
132
133 randRange(1, 5) 134
135 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 136
5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 137
138

\dfrac{I_DENOM * WHOLE}{I_DENOM} = WHOLE

139

2a45da4 lint beneater authored Nov 25, 2013 140 So \dfrac{I_NUM}{I_DENOM} is 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 141 \dfrac{I_NUM2}{I_DENOM} more than WHOLE 142

4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 143
5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 144 145

2a45da4 lint beneater authored Nov 25, 2013 146 WHOLE2\dfrac{M_NUM}{M_DENOM} is 147 \dfrac{M_NUM}{M_DENOM} more than WHOLE2 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 148

149 150

151 Therefore WHOLE2\dfrac{M_NUM}{M_DENOM} 2a45da4 lint beneater authored Nov 25, 2013 152 SOLUTION \dfrac{I_NUM}{I_DENOM} 5da2795 Merge pull request #113389 from petercollingridge/impfrac petercollingridge authored Nov 12, 2013 153

4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 154
155
156
157 158
cde9e9f Re-run the exercises through the updated cleaner. jeresig authored Apr 24, 2013 159 160
Something went wrong with that request. Please try again.