[LON-CAPA-users] Any way around this?

Gerd Kortemeyer korte at lite.msu.edu
Tue Aug 21 12:17:34 EDT 2012


Hi,

Yes, you are right, I just tested this. Deep down inside CAPA, the string from the Perl-environment is turned into a number before being passed on to checking. It's a bug that nobody found in 12 years.

I would suggest customresponse or even stringresponse to get around this.

- Gerd.

On Aug 21, 2012, at 11:54 AM, "Mills, Douglas G" <dmills at illinois.edu> wrote:

> Ok, but even so the error message quotes the computer's answer as 8e-06 with
> nothing but 1 sig fig, regardless of how hard I try to get it to recognize
> that in fact I'm giving it 4 sig figs. What is wanted here is 4 sig figs, so
> turning it into a range all the way down to 1 sig fig seems like removing
> the sig fig requirement altogether, no?
> 
> 
> On 8/21/12 10:50 AM, "Gerd Kortemeyer" <korte at lite.msu.edu> wrote:
> 
>> Hi,
>> 
>> That means the expected answer from the student (and the computer) needs to
>> have exactly four significant digits. I would turn that into a range.
>> 
>> - Gerd.
>> 
>> On Aug 21, 2012, at 11:48 AM, "Mills, Douglas G" <dmills at illinois.edu> wrote:
>> 
>>> <responseparam type="tolerance" default="0.5%" name="tol"
>>> description="Numerical Tolerance" />
>>> <responseparam name="sig" type="int_range" default="4"
>>> description="Significant Digits" />
>>> 
>>> 
>>> 
>>> On 8/21/12 10:43 AM, "Gerd Kortemeyer" <korte at lite.msu.edu> wrote:
>>> 
>>>> Hi,
>>>> 
>>>> On Aug 21, 2012, at 11:39 AM, "Mills, Douglas G" <dmills at illinois.edu>
>>>> wrote:
>>>> 
>>>>> So <numericalresponse answer="$CB1" format="4s"> ??
>>>> 
>>>> Yes.
>>>> 
>>>> 
>>>>> I have that, and have
>>>>> tried setting the variable both with and without the &format command, but
>>>>> to
>>>>> no avail.  8.000e-6, 8*10^-6 and even .000008000 all show up in the error
>>>>> message as 8e-06 complaining of the computer's answer being wrong.
>>>> 
>>>> What do you have the in "significant digits" and "tolerance" response
>>>> parameters?
>>>> 
>>>> - Gerd.
>>>> 
>>>> _______________________________________________
>>>> LON-CAPA-users mailing list
>>>> LON-CAPA-users at mail.lon-capa.org
>>>> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
>>> 
>>> 
>>> Doug
>>> 
>>> Douglas Mills
>>> Director of Instructional Technologies
>>> Department of Chemistry
>>> University of Illinois
>>> dmills at illinois.edu
>>> (217) 244-5739 
>>> 
>>> 
>>> _______________________________________________
>>> 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
> 
> 
> Doug
> 
> Douglas Mills
> Director of Instructional Technologies
> Department of Chemistry
> University of Illinois
> dmills at illinois.edu
> (217) 244-5739 
> 
> 
> _______________________________________________
> 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