# public Khan /khan-exercises

### Subversion checkout URL

You can clone with HTTPS or Subversion.

Older
100644 56 lines (53 sloc) 2.151 kb
 ``` 3be4f320 » marcia ``` 2011-07-15 Add exercises -- +/- fractions with common denominators 1 2 3 ``` 4e4cb9b1 » beneater ``` 2012-04-10 lint: tabs->spaces and jQuery->\$ for exercises 4 5 Subtracting fractions with common denominators 6 ``` 3be4f320 » marcia ``` 2011-07-15 Add exercises -- +/- fractions with common denominators 7 8 ``` 4e4cb9b1 » beneater ``` 2012-04-10 lint: tabs->spaces and jQuery->\$ for exercises 9
10
11 randRange( 2, 10 ) 12 randRange( 1, N1 - 1 ) 13 randRange( 10, 20 ) 14
``` 3be4f320 » marcia ``` 2011-07-15 Add exercises -- +/- fractions with common denominators 15 ``` 4e4cb9b1 » beneater ``` 2012-04-10 lint: tabs->spaces and jQuery->\$ for exercises 16
17
18
19

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

20
21
( N1 - N2 ) / D
22
23
``` 3be4f320 » marcia ``` 2011-07-15 Add exercises -- +/- fractions with common denominators 24 ``` 4e4cb9b1 » beneater ``` 2012-04-10 lint: tabs->spaces and jQuery->\$ for exercises 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
``` 3be4f320 » marcia ``` 2011-07-15 Add exercises -- +/- fractions with common denominators 54 55
Something went wrong with that request. Please try again.