Commit 05bccadf by Mark Hoeber

Merge pull request #2684 from edx/sylvia/documentation/BLD-849

Sylvia/documentation/bld 849
parents 2da1e4ee 1cb0cb20
...@@ -619,8 +619,8 @@ Although you can create multiple choice problems by using the Simple Editor in S ...@@ -619,8 +619,8 @@ Although you can create multiple choice problems by using the Simple Editor in S
.. _Numerical Response: .. _Numerical Response:
Numerical Response Numerical Response (Numerical Input Problems)
------------------ ---------------------------------------------
The Numerical Response input type accepts a line of text input from the student The Numerical Response input type accepts a line of text input from the student
and evaluates the input for correctness based on its numerical value. The input and evaluates the input for correctness based on its numerical value. The input
...@@ -649,34 +649,34 @@ Sample Problem: ...@@ -649,34 +649,34 @@ 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? <p>What base is the decimal numeral system in?
<numericalresponse answer="10"> <numericalresponse answer="10">
<formulaequationinput label="What base is the decimal numeral system in?"/> <formulaequationinput label="What base is the decimal numeral system in?"/>
</numericalresponse> </numericalresponse>
</p> </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 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.
<numericalresponse answer="9.80665"> <numericalresponse answer="9.80665">
<responseparam type="tolerance" default="0.01" /> <responseparam type="tolerance" default="0.01" />
<formulaequationinput label="Give your answer to at least two decimal places"/> <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! --> <!-- Use python script spacing. The following should not be indented! -->
<script type="loncapa/python"> <script type="loncapa/python">
computed_response = math.sqrt(math.fsum([math.pow(math.pi,2), math.pow(math.e,2)])) computed_response = math.sqrt(math.fsum([math.pow(math.pi,2), math.pow(math.e,2)]))
</script> </script>
<p>What is the distance in the plane between the points (pi, 0) and (0, e)? You can type math. <p>What is the distance in the plane between the points (pi, 0) and (0, e)? You can type math.
<numericalresponse answer="$computed_response"> <numericalresponse answer="$computed_response">
<responseparam type="tolerance" default="0.0001" /> <responseparam type="tolerance" default="0.0001" />
<formulaequationinput label="What is the distance in the plane between the points (pi, 0) and (0, e)?"/> <formulaequationinput label="What is the distance in the plane between the points (pi, 0) and (0, e)?"/>
</numericalresponse> </numericalresponse>
</p> </p>
<solution> <solution>
<div class="detailed-solution"> <div class="detailed-solution">
<p>Explanation</p> <p>Explanation</p>
<p>The decimal numerical system is base ten.</p> <p>The decimal numerical system is base ten.</p>
...@@ -690,8 +690,8 @@ Sample Problem: ...@@ -690,8 +690,8 @@ Sample Problem:
Other answers like <code>sqrt((pi-0)^2+(0-e)^2)</code> also work. Other answers like <code>sqrt((pi-0)^2+(0-e)^2)</code> also work.
</p> </p>
</div> </div>
</solution> </solution>
</problem> </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