[LON-CAPA-users] radian answers

Raymond Batchelor batchelo at sfu.ca
Thu Jun 27 05:27:51 EDT 2013

Possibly there is a confusion, when using "pi", between that being simply a variable or the number?

So, try "sampling" at $pi.

i.e. use 

<formularesponse samples="pi@$pi" answer="pi/3">

----- Original Message -----
From: "Seema Ali" <sali at vsb.bc.ca>
To: lon-capa-users at mail.lon-capa.org
Sent: Wednesday, 26 June, 2013 21:38:01
Subject: [LON-CAPA-users] radian answers


It has been a while since I created exact answers, and I'm not sure why it works in my other questions and it isn't working in this one. I'm trying to get students to enter answers with pi in them, but I can't seem to get it to work for certain cases. 

The problem is, say the answer is pi/3. 
If a student enters pi/3 it works, but if a student enters 6pi/18 it is marked incorrect. So I changed it to accept the answer: 1*pi/3 and it marks the answer pi/3 wrong, but makrs 6pi/18. 

I'm using Reponse: Formula. 

<formularesponse answer="1*$answerN/$answerD"> 
<responseparam description="Numerical Tolerance" type="tolerance" default="0%" name="tol" /> 
<textline size="25" readonly="no" /> 


What am I doing wrong? 


LON-CAPA-users mailing list
LON-CAPA-users at mail.lon-capa.org

More information about the LON-CAPA-users mailing list