# Khan/khan-exercises

### Subversion checkout URL

You can clone with
or
.
Older
100644 56 lines (53 sloc) 2.1 KB
 3be4f32 Add exercises -- +/- fractions with common denominators marcia authored Jul 15, 2011 1 2 3 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 4 5 Subtracting fractions with common denominators 6 3be4f32 Add exercises -- +/- fractions with common denominators marcia authored Jul 16, 2011 7 8 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 9
10
11 randRange( 2, 10 ) 12 randRange( 1, N1 - 1 ) 13 randRange( 10, 20 ) 14
3be4f32 Add exercises -- +/- fractions with common denominators marcia authored Jul 16, 2011 15 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 16
17
18
19

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

20
21
( N1 - N2 ) / D
22
23
3be4f32 Add exercises -- +/- fractions with common denominators marcia authored Jul 16, 2011 24 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 25
26
27 init({ range: [ [-3, 3], [-3, 3] ], scale: 25 }); 28 PIECH = piechart( [ N1, D - 1 ], ["#e00", "#999"], 2 ); 29
30
31
32 init({ range: [ [-3, 3], [-3, 3] ], scale: 25 }); 33 piechart( [ N1-N2,N2, D - 1 ], ["#e00","#122", "#999"], 2 ); 34
35

Subtract the numerators.

36
37
38
39 init({ range: [ [-3, 3], [-3, 3] ], scale: 25 }); 40 piechart( [ N1 - N2, D - 1 ], ["#e00", "#999"], 2 ); 41
42

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

43
44
45

Simplify.

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
50

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

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