[LON-CAPA-users] Having an equation or a range as a response
Gerd Kortemeyer
korte at lite.msu.edu
Fri Jan 20 07:10:29 EST 2012
Hi,
On Jan 20, 2012, at 1:03 AM, Seema Ali wrote:
> Thank you Gerd!
>
> That worked well. I changed one of the lines to
> if (&cas('maxima',"($left)-($b)-(y-$right)") eq '0') { return 'EXACT_ANS'; }
>
> Just in case someone decides to enter 8=y. =]
It's still not perfect. What if they enter 2y=16? The current algorithm only deals with stuff like y+2=10.
I am very busy at the moment, but at some point in time, I want to look at doing this in a general way. I filed a bug against myself, http://bugs.lon-capa.org/show_bug.cgi?id=6550 - trivial this is not, unless I am missing something.
- Gerd.
More information about the LON-CAPA-users
mailing list