[LON-CAPA-users] radian answers

Raymond Batchelor batchelo at sfu.ca
Thu Jun 27 06:20:57 EDT 2013


I also suspect you'd want to set the tolerance to be non-zero.  That is, if you want to allow an actual numerical answer to also be accepted. 


----- Original Message -----
From: "Raymond Batchelor" <batchelo at sfu.ca>
To: "Discussion list for LON-CAPA users" <lon-capa-users at mail.lon-capa.org>
Sent: Thursday, 27 June, 2013 02:27:51
Subject: Re: [LON-CAPA-users] radian answers

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



Sorry, 


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" /> 

</formularesponse> 


What am I doing wrong? 


Thanks. 


_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users at mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users


More information about the LON-CAPA-users mailing list