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

75 lines (65 sloc) 2.372 kb
<!DOCTYPE html>
<html data-require="math word-problems">
<head>
<meta charset="UTF-8" />
<title>Simplifying fractions</title>
<script src="../khan-exercise.js"></script>
</head>
<body>
<div class="exercise">
<div class="vars" data-ensure="! (getGCD ( NUM, DENOM ) === NUM || getGCD ( NUM, DENOM) === DENOM)">
<var id="FACTOR">randRange( 3, 15 )</var>
<var id="NUM">randRange(2, 10) * FACTOR</var>
<var id="DENOM">randRange(2, 10) * FACTOR</var>
<var id="GCD">getGCD( NUM, DENOM )</var>
<var id="GCD_FACTORS">getPrimeFactorization( GCD )</var>
<var id="HINT">
(function(){
var factorValue = 1;
var factorDisplay = "";
var hint = "\\dfrac{" + NUM + "}{" + DENOM + "}";
jQuery.each( GCD_FACTORS, function( index, value) {
factorValue *= value;
var dot = index == 0 ? "" : "\\cdot ";
factorDisplay += dot + value;
hint += "= \\dfrac{" + factorDisplay + "\\cdot" + NUM / factorValue + "}{" + factorDisplay + "\\cdot" + DENOM / factorValue + "}";
});
hint += "= \\dfrac{" + NUM / GCD + "}{" + DENOM / GCD + "}";
return hint;
})()
</var>
</div>
<div class="problems">
<div>
<p class="problem">Simplify to lowest terms.</p>
<p class="question"><code>\dfrac{<var>NUM</var>}{<var>DENOM</var>}</code></p>
<p class="solution" data-type="rational"><var>NUM / DENOM</var></p>
</div>
</div>
<div class="hints">
<p data-if="GCD_FACTORS.length !== 1">There are several ways to tackle this problem.</p>
<p>What is the GCD of <var>NUM</var> and <var>DENOM</var>?</p>
<p>GCD(<var>NUM</var>, <var>DENOM</var>) = <var>GCD</var></p>
<p>
<code>\dfrac{<var>NUM</var>}{<var>DENOM</var>}</code>
</p>
<p>
<code>= \dfrac{<var>NUM / GCD</var> \cdot <var>GCD</var>}{ <var>DENOM / GCD</var>\cdot <var>GCD</var>}</code>
</p>
<p>
<code>= \dfrac{<var>NUM / GCD</var>}{<var>DENOM / GCD</var>} \cdot \dfrac{<var>GCD</var>}{<var>GCD</var>}</code>
</p>
<p>
<code>= \dfrac{<var>NUM / GCD</var>}{<var>DENOM / GCD</var>}</code>
</p>
<div data-if="GCD_FACTORS.length !== 1" data-unwrap>
<p>You can also solve this problem by repeatedly breaking the numerator and denominator into common factors.</p>
<div>
<p>For example:</p>
<p><code><var>HINT</var></code></p>
</div>
</div>
</div>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.