[LON-CAPA-users] Unreduced answers in Numerical Response

Lars Jensen lon-capa-users@mail.lon-capa.org
Tue, 8 Oct 2002 22:49:40 -0700 (PDT)


It would be great to be able to enter un-reduced answers in Numerical
Response type math problems. For example if the question is 
"What is the probability to get a two when rolling a die"
The student should be able to enter the answer as 1/6, and not have to
enter .16666667 in decimal.
I have included another example from mathematics below, where the same
feature is desirable. It should be possible to enter the 
answers -3/7 and -27/7 in the boxes. this way lon-capa could accept
expressions on the entry line, and then, acting as a calculator, convert
the students answer to a decimal before checking whether the answer is
correct. 

FYI: WeBWork has this is a feature.


-------------------------
Find the equation of the line problem:
--------------------------------------

<problem>
<startouttext />Find the equation of the line through (-2,-3) and
(-9,0).

<p>y = 
<endouttext />
<numericalresponse answer="-0.4285714">
<responseparam type="tolerance" default="5%" name="tol" description="Numerical Tolerance" />
<responseparam name="sig" type="int_range,0-16" default="0,15" description="Significant Figures" />
<textline />	
</numericalresponse>
x + 
<numericalresponse answer="-3.857143">
<responseparam type="tolerance" default="5%" name="tol" description="Numerical Tolerance" />
<responseparam name="sig" type="int_range,0-16" default="0,15" description="Significant Figures" />
<textline />
</numericalresponse></p> 
</problem>

--
Lars Jensen, TMCC/Vista B200, 7000 Dandini Blvd, Reno NV 89512-3999. 
Internet: <jensen@physics.unr.edu>, http://www.scsr.nevada.edu/~jensen
Tel: 775.673.7113  FAX: 775.674.7592