Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Added the changes @smenks asked for.:) Just a second run at a review …
Browse files Browse the repository at this point in the history
…of this structure. If it's good I'll add the other two questions.
  • Loading branch information
Artana committed Nov 17, 2011
1 parent 63b6c6c commit f4f112e
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions exercises/point_slope_form.html
Expand Up @@ -5,46 +5,49 @@
<title>Point Slope Form</title>
<script src="../khan-exercise.js"></script>
</head>
<body>
<bodx>
<div class="exercise">
<div class="problems">
<div id="standard-to-slope">
<div class="vars" data-ensure="X !== X1">
<var id="X">randRangeNonZero( -5, 5 )</var>
<var id="Y">randRangeNonZero( -5, 5 )</var>
<div id="y-as-function-of-x">
<div class="vars" data-ensure="X1 !== X2">
<var id="X1">randRangeNonZero( -5, 5 )</var>
<var id="Y1">randRangeNonZero( -5, 5 )</var>
<var id="SLOPE">(Y - Y1) / (X - X1)</var>
<var id="Y1">randRangeNonZero( -5, 5 )</var>
<var id="X2">randRangeNonZero( -5, 5 )</var>
<var id="Y2">randRangeNonZero( -5, 5 )</var>
<var id="SLOPE">(Y1 - Y2) / (X1 - X2)</var>
</div>
<p class="problem">Using the following values, create an equation in point slope form.</p>
<p>In other words, given the values below, for a formula that looks like <code> (y - y1) = m(x - x1)</code>, what are the values of <code>y1</code>, <code>x1</code>, and <code>m</code>?</p>
<p><code>x1\text{ } =\text{ }\color{#b22222}{<var>X</var>},\text{ } f(x1)\text{ } =\text{ } \color{#b22222}{<var>Y</var>}.</code><br /><code>x2 \text{ } = \text{ }\color{#4169E1}{<var>X1</var>},\text{ } f(x2)\text{ } = \text{ }\color{#4169E1}{<var>Y1</var>}.</code> </p>
<p class="problem">Using the following values, create an equation in point slope form. In other words, given the values below, for a formula that looks like <code>(y_{1} - y_{2}) = m(x_{1} - x_{2})</code>, what are the values of <code>y_{1}</code>, <code>x_{1}</code>, and <code>m</code>?</p>
<p><code>x_{1}=\color{#b22222}{<var>X1</var>},\quad f(x_1)=\color{#b22222}{<var>Y1</var>}.</code><br /><code>x_{2}=\color{#4169E1}{<var>X2</var>},\quad f(x_{2})\text{ } = \color{#4169E1}{<var>Y2</var>}.</code> </p>
<div class="solution" data-type="set">
<div class="set-sol" data-type="multiple">
<span class="sol"><var>X1</var></span>
<span class="sol"><var>Y1</var></span>
<span class="sol"><var>X2</var></span>
<span class="sol"><var>Y2</var></span>
<span class="sol"><var>SLOPE</var></span>
</div>
<div class="set-sol" data-type="multiple">
<span class="sol"><var>X</var></span>
<span class="sol"><var>Y</var></span>
<span class="sol"><var>X1</var></span>
<span class="sol"><var>Y1</var></span>
<span class="sol"><var>SLOPE</var></span>
</div>

<div class="input-format">
<p class="entry" data-type="multiple">
<code>\text{x1 = }</code><span class="sol"></span><br />
<code>\text{y1 = }</code><span class="sol"></span><br />
<code>\text{x1 = }</code><span class="sol"></span><br />
<code>\text{m = }</code><span class="sol"></span>
</p>
</div>
</div>
<div class="hints">
<p><code>f(x)</code> is just a fancy term for <code>y</code>. So one point is (<code>\color{#b22222}{<var>X</var>}\text{, }\color{#b22222}{<var>Y</var>}</code>).</p>
<p>The formula for a slope is <code>m = (y1 - y2) / (x1 - x2)</code>.</p>
<p>So, by plugging in the numbers, we get <code>\displaystyle {} \frac{\color{#b22222}{<var>Y</var>} - \color{#4169E1}{<var>Y1</var>}}{\color{#b22222}{<var>X</var>} - \color{#4169E1}{<var>X1</var>}}</code> =<code>\color{#68228B}{<var>fractionReduce(Y - Y1, X - X1)</var>}</code></p>
<p>Select one of the points to subsitute for x1 and y1 in the slope point formula. The solution is then either:<br /> <code>(y - \color{#b22222}{<var>Y</var>}) = \color{#68228B}{<var>fractionReduce(Y - Y1, X - X1)</var>}(x - \color{#b22222}{<var>X</var>})</code><br /> OR <br /><code>(y - \color{#4169E1}{<var>Y1</var>}) = \color{#68228B}{<var>fractionReduce(Y - Y1, X - X1)</var>}(x - \color{#4169E1}{<var>X1</var>})</code></p>

<p><code>f(x_{1})</code> is just a fancy term for <code>y_{1}</code>. So one point is (<code>\color{#b22222}{<var>X1</var>}\text{, }\color{#b22222}{<var>Y1</var>}</code>).</p>
<p>The formula to find a slope is: <code>m = (y_{1} - y_{2}) / (x_{1} - x_{2})</code>.</p>
<p>So, by plugging in the numbers, we get <code>\displaystyle {} \frac{\color{#b22222}{<var>Y1</var>} - \color{#4169E1}{<var>Y2</var>}}{\color{#b22222}{<var>X1</var>} - \color{#4169E1}{<var>X2</var>}}</code> =<code>\color{#68228B}{<var>fractionReduce(Y1 - Y2, X1 - X2)</var>}</code></p>
<div>
<p>Select one of the points to substitute for <code>x_{1}</code> and <code>y_{1}</code>in the slope point formula. The solution is then either:</p>
<p><code>(y - \color{#b22222}{<var>Y1</var>}) = \color{#68228B}{<var>fractionReduce(Y1 - Y2, X1 - X2)</var>}(x - \color{#b22222}{<var>X1</var>})</code></p>
<p>OR</p>
<p><code>(y - \color{#4169E1}{<var>Y2</var>}) = \color{#68228B}{<var>fractionReduce(Y1 - Y2, X1 - X2)</var>}(x - \color{#4169E1}{<var>X2</var>})</code></p>
</div>
</div>
</div>

Expand Down

0 comments on commit f4f112e

Please sign in to comment.