Commit 1cb0cb20 by Sylvia Pearce

Quick typo fix

parent eb6b8aa2
...@@ -649,49 +649,49 @@ Sample Problem: ...@@ -649,49 +649,49 @@ Sample Problem:
.. code-block:: xml .. code-block:: xml
<problem> <problem>
<p><b>Example Problem</b></p> <p><b>Example Problem</b></p>
<p>What base is the decimal numeral system in?
<numericalresponse answer="10">
<formulaequationinput label="What base is the decimal numeral system in?"/>
</numericalresponse>
</p>
<p>What is the value of the standard gravity constant <i>g</i>, measured in m/s<sup>2</sup>? Give your answer to at least two decimal places. <p>What base is the decimal numeral system in?
<numericalresponse answer="9.80665"> <numericalresponse answer="10">
<responseparam type="tolerance" default="0.01" /> <formulaequationinput label="What base is the decimal numeral system in?"/>
<formulaequationinput label="Give your answer to at least two decimal places"/>
</numericalresponse> </numericalresponse>
</p> </p>
<!-- Use python script spacing. The following should not be indented! --> <p>What is the value of the standard gravity constant <i>g</i>, measured in m/s<sup>2</sup>? Give your answer to at least two decimal places.
<script type="loncapa/python"> <numericalresponse answer="9.80665">
computed_response = math.sqrt(math.fsum([math.pow(math.pi,2), math.pow(math.e,2)])) <responseparam type="tolerance" default="0.01" />
</script> <formulaequationinput label="Give your answer to at least two decimal places"/>
</numericalresponse>
</p>
<p>What is the distance in the plane between the points (pi, 0) and (0, e)? You can type math. <!-- Use python script spacing. The following should not be indented! -->
<numericalresponse answer="$computed_response"> <script type="loncapa/python">
<responseparam type="tolerance" default="0.0001" /> computed_response = math.sqrt(math.fsum([math.pow(math.pi,2), math.pow(math.e,2)]))
<formulaequationinput label="What is the distance in the plane between the points (pi, 0) and (0, e)?"/> </script>
</numericalresponse>
</p> <p>What is the distance in the plane between the points (pi, 0) and (0, e)? You can type math.
<solution> <numericalresponse answer="$computed_response">
<div class="detailed-solution"> <responseparam type="tolerance" default="0.0001" />
<p>Explanation</p> <formulaequationinput label="What is the distance in the plane between the points (pi, 0) and (0, e)?"/>
<p>The decimal numerical system is base ten.</p> </numericalresponse>
<p>The standard gravity constant is defined to be precisely 9.80665 m/s<sup>2</sup>. </p>
This is 9.80 to two decimal places. Entering 9.8 also works.</p> <solution>
<p>By the distance formula, the distance between two points in the plane is <div class="detailed-solution">
the square root of the sum of the squares of the differences of each coordinate. <p>Explanation</p>
Even though an exact numerical value is checked in this case, the <p>The decimal numerical system is base ten.</p>
easiest way to enter this answer is to type <p>The standard gravity constant is defined to be precisely 9.80665 m/s<sup>2</sup>.
<code>sqrt(pi^2+e^2)</code> into the editor. This is 9.80 to two decimal places. Entering 9.8 also works.</p>
Other answers like <code>sqrt((pi-0)^2+(0-e)^2)</code> also work. <p>By the distance formula, the distance between two points in the plane is
</p> the square root of the sum of the squares of the differences of each coordinate.
</div> Even though an exact numerical value is checked in this case, the
</solution> easiest way to enter this answer is to type
</problem> <code>sqrt(pi^2+e^2)</code> into the editor.
Other answers like <code>sqrt((pi-0)^2+(0-e)^2)</code> also work.
</p>
</div>
</solution>
</problem>
**Templates** **Templates**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment