[LON-CAPA-users] Implicit Answer Response
GARRETT, DONNELL MAZON
lon-capa-users@mail.lon-capa.org
Thu, 20 Oct 2005 12:18:51 -0400
Hi.. I was looking at your example for formula response located here:
http://help.lon-capa.org/fom/cache/115.html
using this example without changing anything thing, I get that:
y = (13-6)/(8-4)*x+6-(13-6)/(8-4)*4
and that's cool..
however, if you simplify that to -1 + 1.75*x and enter this in as your
answer, Lon-CAPA says that this is wrong. If formula response acts by
comparing both expressions over a set range of values, why doesn't this
work? Matlab says it works..
Donnell
-----Original Message-----
From: lon-capa-users-admin@mail.lon-capa.org
[mailto:lon-capa-users-admin@mail.lon-capa.org] On Behalf Of Guy
Albertelli II
Sent: Wednesday, October 19, 2005 6:17 PM
To: lon-capa-users@mail.lon-capa.org
Subject: Re: [LON-CAPA-users] Implicit Answer Response
Hi Donnell,
> In my script, I have this:
>
> $A = -$temp;
> $w = $vPart2;
>
> $iCurrent = $A*cos($w*t);
Should do:
$iCurrent = "$A*cos($w*t)";
> And, in a part of my .problem, I have this:
>
> <formularesponse answer="$iCurrent" samples="t@1:5#4">
> <responseparam description="Numerical Tolerance" type="tolerance"
> default="0.00001" name="tol" />
> <textline size="25"/>
> <hintgroup>
> <startouttext /><endouttext />
> </hintgroup>
> </formularesponse>
>
>
> Yet, when I try to enter an answer, it just says that it is " Unable
to
> understand formula"
--
guy@albertelli.com 0-7-2-1-27,137
_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users