[LON-CAPA-users] radian answers

Seema Ali sali at vsb.bc.ca
Thu Jun 27 09:44:30 EDT 2013


Thank you.  The sampling worked!  I've never used it before and I'm surprised you use $ for the value of pi instead of %.

I didn't need to set a tolerance, but I did anyways to 0.1%.

Thanks again.
________________________________________
From: lon-capa-users-bounces at mail.lon-capa.org [lon-capa-users-bounces at mail.lon-capa.org] on behalf of Raymond Batchelor [batchelo at sfu.ca]
Sent: 27 June 2013 03:20
To: Discussion list for LON-CAPA users
Subject: Re: [LON-CAPA-users] radian answers

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
_______________________________________________
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