[LON-CAPA-users] Implicit Answer Response

Guy Albertelli II lon-capa-users@mail.lon-capa.org
Thu, 20 Oct 2005 15:27:25 -0400 (EDT)


Hi Donnell,

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


I'm confused. The example is expecting an answer like "3.8*x^3+2.1*y^2"

(I.e. involving both x and y)

So I don't get how you got an = in there (did you assume that
3.8*x^3+2.1*y^2 = 0  and then solve for y?)

And I don't get how lon-capa could have accepted
(13-6)/(8-4)*x+6-(13-6)/(8-4)*4
as a correct answer ... since it also fails to include y.

What random seed are you testing on?


> 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
> 
> 
> 
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users@mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
> 

-- 
guy@albertelli.com   0-7-2-1-27,137