Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

56 lines (53 sloc) 1.741 kb
<!DOCTYPE html>
<html data-require="math math-format graphie graphie-helpers">
<head>
<meta charset="UTF-8" />
<title>Subtracting fractions with common denominators</title>
<script src="../khan-exercise.js"></script>
</head>
<body>
<div class="exercise">
<div class="vars">
<var id="N1">randRange( 2, 10 )</var>
<var id="N2">randRange( 1, N1 - 1 )</var>
<var id="D">randRange( 10, 20 )</var>
</div>
<div class="problems">
<div>
<div class="question">
<p><code><var>fraction( N1, D )</var> - <var>fraction( N2, D )</var> = {?}</code></p>
</div>
<div class="solution" data-type="rational"><var>( N1 - N2 ) / D</var></div>
</div>
</div>
<div class="hints">
<div class="graphie" id="pie" style="float: left">
init({ range: [ [-3, 3], [-3, 3] ], scale: 25 });
PIECH = piechart( [ N1, D - 1 ], ["#e00", "#999"], 2 );
</div>
<div>
<div class="graphie">
init({ range: [ [-3, 3], [-3, 3] ], scale: 25 });
piechart( [ N1-N2,N2, D - 1 ], ["#e00","#122", "#999"], 2 );
</div>
<p>Subtract the numerators.</p>
</div>
<div>
<div class="graphie">
init({ range: [ [-3, 3], [-3, 3] ], scale: 25 });
piechart( [ N1 - N2, D - 1 ], ["#e00", "#999"], 2 );
</div>
<p><code><var>fraction( N1, D )</var> - <var>fraction( N2, D )</var> = <var>fraction( N1 - N2, D )</var></code></p>
</div>
<div data-if="getGCD( N1 - N2, D ) !== 1">
<p>Simplify.</p>
<div class="graphie">
init({ range: [ [-3, 3], [-3, 3] ], scale: 25 });
piechart( [ reduce(N1 - N2 , D)[0] , reduce(N1 - N2, D)[1] - 1 ], ["#e00", "#999"], 2 );
</div>
<p><code><var>fraction( N1 - N2, D )</var> = <var>fractionReduce( N1 - N2, D )</var></code></p>
</div>
</div>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.