[LON-CAPA-users] Implicit Answer Response
GARRETT, DONNELL MAZON
Thu, 20 Oct 2005 12:18:51 -0400
Hi.. I was looking at your example for formula response located here:
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..
[mailto:firstname.lastname@example.org] On Behalf Of Guy
Sent: Wednesday, October 19, 2005 6:17 PM
Subject: Re: [LON-CAPA-users] Implicit Answer Response
> In my script, I have this:
> $A = -$temp;
> $w = $vPart2;
> $iCurrent = $A*cos($w*t);
$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"/>
> <startouttext /><endouttext />
> Yet, when I try to enter an answer, it just says that it is " Unable
> understand formula"
LON-CAPA-users mailing list