Skip to content
This repository
Newer
Older
100644 55 lines (53 sloc) 1.741 kb
3be4f320 » marcia
2011-07-15 Add exercises -- +/- fractions with common denominators
1 <!DOCTYPE html>
2 <html data-require="math math-format graphie graphie-helpers">
3 <head>
72418b80 » jeresig
2011-07-28 Add meta charset to all HTML pages.
4 <meta charset="UTF-8" />
07d95d39 » spicyj
2011-07-22 Rename EVERYTHING; closes #323.
5 <title>Subtracting fractions with common denominators</title>
3be4f320 » marcia
2011-07-15 Add exercises -- +/- fractions with common denominators
6 <script src="../khan-exercise.js"></script>
7 </head>
8 <body>
9 <div class="exercise">
10 <div class="vars">
11 <var id="N1">randRange( 2, 10 )</var>
12 <var id="N2">randRange( 1, N1 - 1 )</var>
13 <var id="D">randRange( 10, 20 )</var>
14 </div>
15
16 <div class="problems">
17 <div>
d77f1ac8 » igorT
2011-07-26 made exercise subtracting fractions nicer so it keeps the pies you we…
18 <div class="question">
3f604011 » spicyj
2011-07-27 = ? formatting
19 <p><code><var>fraction( N1, D )</var> - <var>fraction( N2, D )</var> = {?}</code></p>
d77f1ac8 » igorT
2011-07-26 made exercise subtracting fractions nicer so it keeps the pies you we…
20 </div>
b5754b60 » jruberg
2011-08-17 datatype 'improper' -> 'rational'. fixes #1075.
21 <div class="solution" data-type="rational"><var>( N1 - N2 ) / D</var></div>
3be4f320 » marcia
2011-07-15 Add exercises -- +/- fractions with common denominators
22 </div>
23 </div>
24
25 <div class="hints">
800e9f95 » igorT
2011-07-26 fix #267
26 <div class="graphie" id="pie" style="float: left">
3be4f320 » marcia
2011-07-15 Add exercises -- +/- fractions with common denominators
27 init({ range: [ [-3, 3], [-3, 3] ], scale: 25 });
800e9f95 » igorT
2011-07-26 fix #267
28 PIECH = piechart( [ N1, D - 1 ], ["#e00", "#999"], 2 );
3be4f320 » marcia
2011-07-15 Add exercises -- +/- fractions with common denominators
29 </div>
30 <div>
d77f1ac8 » igorT
2011-07-26 made exercise subtracting fractions nicer so it keeps the pies you we…
31 <div class="graphie">
32 init({ range: [ [-3, 3], [-3, 3] ], scale: 25 });
33 piechart( [ N1-N2,N2, D - 1 ], ["#e00","#122", "#999"], 2 );
34 </div>
3be4f320 » marcia
2011-07-15 Add exercises -- +/- fractions with common denominators
35 <p>Subtract the numerators.</p>
800e9f95 » igorT
2011-07-26 fix #267
36 </div>
37 <div>
d77f1ac8 » igorT
2011-07-26 made exercise subtracting fractions nicer so it keeps the pies you we…
38 <div class="graphie">
39 init({ range: [ [-3, 3], [-3, 3] ], scale: 25 });
40 piechart( [ N1 - N2, D - 1 ], ["#e00", "#999"], 2 );
41 </div>
3be4f320 » marcia
2011-07-15 Add exercises -- +/- fractions with common denominators
42 <p><code><var>fraction( N1, D )</var> - <var>fraction( N2, D )</var> = <var>fraction( N1 - N2, D )</var></code></p>
43 </div>
44 <div data-if="getGCD( N1 - N2, D ) !== 1">
45 <p>Simplify.</p>
d77f1ac8 » igorT
2011-07-26 made exercise subtracting fractions nicer so it keeps the pies you we…
46 <div class="graphie">
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 </div>
3be4f320 » marcia
2011-07-15 Add exercises -- +/- fractions with common denominators
50 <p><code><var>fraction( N1 - N2, D )</var> = <var>fractionReduce( N1 - N2, D )</var></code></p>
51 </div>
52 </div>
2c3690b7 » spicyj
2011-07-23 Make everything validate
53 </div>
3be4f320 » marcia
2011-07-15 Add exercises -- +/- fractions with common denominators
54 </body>
55 </html>
Something went wrong with that request. Please try again.