[LON-CAPA-users] Understanding formularesponses
Justin Gray
lon-capa-users@mail.lon-capa.org
Mon, 8 Sep 2008 00:20:44 -0800
------=_Part_62514_32440029.1220862044332
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi Ray,
If you want to allow a numerical approximation to log(2) as a correct
answer, then I recommend that you use point sampling rather than a computer
algebra system to evaluate the answer. Try this:
<problem>
<part><startouttext />Numerical Tolerance works well with formula response
when point sampling is used. Either log(2) or 0.6931 are graded
correct:<endouttext />
<formularesponse answer="log(2)" samples="x@1:5#4">
<responseparam description="Numerical Tolerance" type="tolerance"
default="0.0001" name="tol" />
<textline size="25" readonly="no" />
</formularesponse>
</part>
<part><startouttext />Numerical Tolerance does not seem to work well with
formula response when the expression is evaluated in Maxima. This time
log(2) is correct but 0.6931 is graded as incorrect:<endouttext />
<formularesponse answer="log(2)">
<responseparam description="Numerical Tolerance" type="tolerance"
default="0.0001" name="tol" />
<textline size="25" readonly="no" />
</formularesponse>
</part>
</problem>
Justin
On Sun, Sep 7, 2008 at 11:36 PM, Ray Batchelor <batchelo@sfu.ca> wrote:
>
> How would you create a formula response question for which you want both
> "log(2)" to be the answer both symbolically and numerically?
>
> --
> Ray
>
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Justin Gray
Dept. of Mathematics
Simon Fraser University
8888 University Drive
Burnaby, B.C. V5A 1S6
Canada
Tel. +1 778-782-4237
Fax. +1 778-782-4947
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.terryfoxrun.org/ENRunner/default.asp?s=1&RunnerID=56229
------=_Part_62514_32440029.1220862044332
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<div dir="ltr">Hi Ray,<br><br>If you want to allow a numerical approximation to log(2) as a correct answer, then I recommend that you use point sampling rather than a computer algebra system to evaluate the answer. Try this:<br>
<br><problem><br><part><startouttext />Numerical Tolerance works well with formula response when point sampling is used. Either log(2) or 0.6931 are graded correct:<endouttext /><br><br><formularesponse answer="log(2)" samples="x@1:5#4"><br>
<responseparam description="Numerical Tolerance" type="tolerance" default="0.0001" name="tol" /><br> <textline size="25" readonly="no" /><br> <br>
</formularesponse><br></part><br><br><part><startouttext />Numerical Tolerance does not seem to work well with formula response when the expression is evaluated in Maxima. This time log(2) is correct but 0.6931 is graded as incorrect:<endouttext /><br>
<formularesponse answer="log(2)"><br> <responseparam description="Numerical Tolerance" type="tolerance" default="0.0001" name="tol" /><br> <textline size="25" readonly="no" /><br>
<br></formularesponse><br></part><br></problem><br><br>Justin<br><br><br><div class="gmail_quote">On Sun, Sep 7, 2008 at 11:36 PM, Ray Batchelor <span dir="ltr"><<a href="mailto:batchelo@sfu.ca">batchelo@sfu.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><br>How would you create a formula response question for which you want both<br>
"log(2)" to be the answer both symbolically and numerically?<br clear="all"><br>-- <br>Ray<br><br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Justin Gray <br>Dept. of Mathematics <br>
Simon Fraser University<br>8888 University Drive<br>Burnaby, B.C. V5A 1S6<br>Canada<br>Tel. +1 778-782-4237<br>Fax. +1 778-782-4947<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><br><a href="http://www.terryfoxrun.org/ENRunner/default.asp?s=1&RunnerID=56229">http://www.terryfoxrun.org/ENRunner/default.asp?s=1&RunnerID=56229</a> <br>
<br><br><br>
</div>
------=_Part_62514_32440029.1220862044332--