# Khan/khan-exercises

### Subversion checkout URL

You can clone with HTTPS or Subversion.

Older
100644 56 lines (53 sloc) 1.741 kb
 3be4f32 Add exercises -- +/- fractions with common denominators marcia authored Jul 15, 2011 1 2 3 72418b8 Add meta charset to all HTML pages. jeresig authored Jul 28, 2011 4 07d95d3 Rename EVERYTHING; closes #323. spicyj authored Jul 22, 2011 5 Subtracting fractions with common denominators 3be4f32 Add exercises -- +/- fractions with common denominators marcia authored Jul 16, 2011 6 7 8 9
10
11 randRange( 2, 10 ) 12 randRange( 1, N1 - 1 ) 13 randRange( 10, 20 ) 14
15 16
17
d77f1ac made exercise subtracting fractions nicer so it keeps the pies you went ... igorT authored Jul 26, 2011 18
3f60401 = ? formatting spicyj authored Jul 27, 2011 19

fraction( N1, D ) - fraction( N2, D ) = {?}

d77f1ac made exercise subtracting fractions nicer so it keeps the pies you went ... igorT authored Jul 27, 2011 20
b5754b6 datatype 'improper' -> 'rational'. fixes #1075. jruberg authored Aug 17, 2011 21
( N1 - N2 ) / D
3be4f32 Add exercises -- +/- fractions with common denominators marcia authored Jul 16, 2011 22
23
24 25
800e9f9 fix #267 igorT authored Jul 26, 2011 26
3be4f32 Add exercises -- +/- fractions with common denominators marcia authored Jul 16, 2011 27 init({ range: [ [-3, 3], [-3, 3] ], scale: 25 }); 800e9f9 fix #267 igorT authored Jul 27, 2011 28 PIECH = piechart( [ N1, D - 1 ], ["#e00", "#999"], 2 ); 3be4f32 Add exercises -- +/- fractions with common denominators marcia authored Jul 16, 2011 29
30
d77f1ac made exercise subtracting fractions nicer so it keeps the pies you went ... igorT authored Jul 27, 2011 31
32 init({ range: [ [-3, 3], [-3, 3] ], scale: 25 }); 33 piechart( [ N1-N2,N2, D - 1 ], ["#e00","#122", "#999"], 2 ); 34
3be4f32 Add exercises -- +/- fractions with common denominators marcia authored Jul 16, 2011 35

Subtract the numerators.

800e9f9 fix #267 igorT authored Jul 27, 2011 36
37
d77f1ac made exercise subtracting fractions nicer so it keeps the pies you went ... igorT authored Jul 27, 2011 38
39 init({ range: [ [-3, 3], [-3, 3] ], scale: 25 }); 40 piechart( [ N1 - N2, D - 1 ], ["#e00", "#999"], 2 ); 41
3be4f32 Add exercises -- +/- fractions with common denominators marcia authored Jul 16, 2011 42

fraction( N1, D ) - fraction( N2, D ) = fraction( N1 - N2, D )

43
44
45

Simplify.

d77f1ac made exercise subtracting fractions nicer so it keeps the pies you went ... igorT authored Jul 27, 2011 46
47 init({ range: [ [-3, 3], [-3, 3] ], scale: 25 }); 48 piechart( [ reduce(N1 - N2 , D)[0] , reduce(N1 - N2, D)[1] - 1 ], ["#e00", "#999"], 2 ); 49
3be4f32 Add exercises -- +/- fractions with common denominators marcia authored Jul 16, 2011 50

fraction( N1 - N2, D ) = fractionReduce( N1 - N2, D )

51
52
2c3690b Make everything validate spicyj authored Jul 23, 2011 53
3be4f32 Add exercises -- +/- fractions with common denominators marcia authored Jul 16, 2011 54 55
Something went wrong with that request. Please try again.