This repository has been archived by the owner on May 11, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add two more exercises for factoring special polynomials
- Loading branch information
Showing
3 changed files
with
200 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<!DOCTYPE html> | ||
<html data-require="math graphie ast math-model"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Factoring Special Product Polynomials with A = 1</title> | ||
<script src="../khan-exercise.js"></script> | ||
</head> | ||
<body> | ||
<div class="exercise"> | ||
<div class="problems"> | ||
<div> | ||
<div class="vars"> | ||
<var id="MATH">MathModel.init()</var> | ||
<var id="b">randRangeNonZero(-9, 9)</var> | ||
<var id="A">1</var> | ||
<var id="B">2*b</var> | ||
<var id="C">b*b</var> | ||
<var id="PROBLEM">MATH.polynomial([A, B, C], "x")</var> | ||
<!-- use parse so that the ast matches the parsed user input --> | ||
<var id="SOLUTION">MATH.parse("(x+"+b+")^2")</var> | ||
</div> | ||
<div> | ||
<p class="question"> | ||
Factor the following expression: | ||
</p> | ||
<p> | ||
<code><var>MATH.format(PROBLEM, "large")</var></code> | ||
</p> | ||
</div> | ||
<div class="solution" data-type="custom"> | ||
<div class="instruction"> | ||
Enter the factored expression here:<br> | ||
<input name="response" type="text" onblur="window._guess=value"></input> | ||
</div> | ||
<div class="guess">window._guess</div> | ||
<div class="validator-function"> | ||
return MATH.isEqual(MATH.parse(guess), SOLUTION) | ||
</div> | ||
<div class="show-guess"> | ||
</div> | ||
<div class="example">(x+2)^2</div> | ||
</div> | ||
<div class="hints"> | ||
<p> | ||
Recognize that the expression is of the form | ||
<code><var>MATH.format("a^2+2ab+b^2", "normalsize", KhanUtil.BLUE)</var></code> | ||
, which can be factored as | ||
<code><var>MATH.format("(a+b)^2", "normalsize", KhanUtil.BLUE)</var></code>. | ||
</p> | ||
<p> | ||
First, determine the values of | ||
<code><var>MATH.format("a", "normalsize", KhanUtil.BLUE)</var></code> and | ||
<code><var>MATH.format("b", "normalsize", KhanUtil.BLUE)</var></code>. | ||
</p> | ||
<p> | ||
<code><var>MATH.format("a="+"x", "normalsize", KhanUtil.BLUE)</var></code><br><br> | ||
<code><var>MATH.format("b="+2*b+"/"+2+"="+b, "normalsize", KhanUtil.BLUE)</var></code> | ||
</p> | ||
<p> | ||
Replace | ||
<code><var>MATH.format("a", "normalsize", KhanUtil.BLUE)</var></code> and | ||
<code><var>MATH.format("b", "normalsize", KhanUtil.BLUE)</var></code> in the factored equation to find the answer. | ||
</p> | ||
<p> | ||
<code><var>MATH.format("(x+"+b+")^2", "large", KhanUtil.ORANGE)</var></code> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<!DOCTYPE html> | ||
<html data-require="math graphie ast math-model"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Factoring Special Product Polynomials with A != 1</title> | ||
<script src="../khan-exercise.js"></script> | ||
</head> | ||
<body> | ||
<div class="exercise"> | ||
<div class="problems"> | ||
<div> | ||
<div class="vars"> | ||
<var id="MATH">MathModel.init()</var> | ||
<var id="a">randRange(2, 9)</var> | ||
<var id="b">randRangeNonZero(-9, 9)</var> | ||
<var id="A">a*a</var> | ||
<var id="B">2*a*b</var> | ||
<var id="C">b*b</var> | ||
<var id="PROBLEM">MATH.polynomial([A, B, C], "x")</var> | ||
<!-- use parse so that the ast matches the parsed user input --> | ||
<var id="SOLUTION">MATH.parse("("+a+"x+"+b+")^2")</var> | ||
</div> | ||
<div> | ||
<p class="question"> | ||
Factor the following expression: | ||
</p> | ||
<p> | ||
<code><var>MATH.format(PROBLEM, "large")</var></code> | ||
</p> | ||
</div> | ||
<div class="solution" data-type="custom"> | ||
<div class="instruction"> | ||
Enter the factored expression here:<br> | ||
<input name="response" type="text" onblur="window._guess=value"></input> | ||
</div> | ||
<div class="guess">window._guess</div> | ||
<div class="validator-function"> | ||
return MATH.isEqual(MATH.parse(guess), SOLUTION) | ||
</div> | ||
<div class="show-guess"> | ||
</div> | ||
<div class="example">(2x+3)^2</div> | ||
</div> | ||
<div class="hints"> | ||
<p> | ||
Recognize that the expression is of the form | ||
<code><var>MATH.format("a^2+2ab+b^2", "normalsize", KhanUtil.BLUE)</var></code> | ||
, which can be factored as | ||
<code><var>MATH.format("(a+b)^2", "normalsize", KhanUtil.BLUE)</var></code>. | ||
</p> | ||
<p> | ||
First, determine the values of | ||
<code><var>MATH.format("a", "normalsize", KhanUtil.BLUE)</var></code> and | ||
<code><var>MATH.format("b", "normalsize", KhanUtil.BLUE)</var></code>. | ||
</p> | ||
<p> | ||
<code><var>MATH.format("a="+a+"x", "normalsize", KhanUtil.BLUE)</var></code><br><br> | ||
<code><var>MATH.format("b="+2*b+"/"+2+"="+b, "normalsize", KhanUtil.BLUE)</var></code> | ||
</p> | ||
<p> | ||
Replace | ||
<code><var>MATH.format("a", "normalsize", KhanUtil.BLUE)</var></code> and | ||
<code><var>MATH.format("b", "normalsize", KhanUtil.BLUE)</var></code> in the factored equation to find the answer. | ||
</p> | ||
<p> | ||
<code><var>MATH.format("("+a+"x+"+b+")^2", "large", KhanUtil.ORANGE)</var></code> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters