# [LON-CAPA-users] square roots in formula response

Justin Gray lon-capa-users@mail.lon-capa.org
Mon, 3 Sep 2007 14:52:49 -0800

------=_Part_19250_443440.1188859969706
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Many thanks, Peter. This is exactly what I was looking for.

Justin

On 9/3/07, Peter Riegler <p.riegler@fh-wolfenbuettel.de> wrote:
>
> Hi Justin,
>
> does "elegant" include two seperate input fields, for demoninator and
> numerator? Or did you come up with two input fields because otherwise
> the lhs (i.e. non-rationalized) would be accepted if using sampling?
> If so, I would suggest something like
> <formularesponse answer=3D"(m - 4)*(sqrt(m) + 4)/(m-16)">
>
> (I would prefer the students enter sqrt(m) rather than sqrtm).
>
> What the above does is to ask maxima
> is( STUDENTSRESPONSE =3D (m - 4)*(sqrt(m) + 4)/(m-16));
>
> The important point here is that a student's reponse
> (m-4)/(sqrt(m)-4)
> would return false. The reason is, maxima does not simplify before
> comparison.
>
> Hope this will help.
>
> Peter
>
> Justin Gray wrote:
>
> > Does anyone know a more elegant way to write the problem below?
> >
> > Thanks,
> > Justin
> >
> > <problem>
> > <startouttext />Rationalize the denominator and
> simplify:<p></p><br></br>
> > Use sqrtm for <m display =3D jsmath>$\sqrt{m}</m>.<p></p> > > <table> > > > > <tr> > > <td><m display=3D"jsMath">\, \, \, \,$m - 4$</m></td> <td></td> > > <td><endouttext /> > > <formularesponse samples=3D"m,sqrtm@-3,-3:3,3#5" answer=3D"(m - 4)(sqrt= m + > > 4)" id=3D"11"> > > > > <textline readonly=3D"no" size=3D"20" /> > > > > </formularesponse><startouttext /></td> > > </tr> > > <tr> > > <td><hr width=3D"60"></hr></td> <td><m display=3D"jsMath">$\mbox{ }=
=3D
> > \mbox{ }$</m></td> <td><hr width=3D"140"></hr></td> > > </tr> > > <tr> > > <td><m display=3D"jsMath">$\sqrt{m} - 4$</m></td> <td></td> > > <td><endouttext /> > > <formularesponse samples=3D"m@-3:3#5" answer=3D"m - 16" id=3D"12"> > > > > <textline readonly=3D"no" size=3D"20" /> > > > > </formularesponse><startouttext /></td> > > </tr> > > </table><p></p><endouttext /> > > </problem> > > > > > > -- > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Justin Gray Tel. > > 778-782-4237 > > Dept. of Mathematics Fax. 778-782-494= 7 > > Simon Fraser University > > 8888 University Drive > > Burnaby, B.C. V5A 1S6 > > Canada > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > -- > Peter Riegler > Fachhochschule Braunschweig/Wolfenb=FCttel > Salzdahlumer Str. 46/48, 38302 Wolfenb=FCttel > Tel. +49 5331 939 6314, Fax. +49 5331 939 6002 > email: p.riegler@fh-wolfenbuettel.de > http://public.rz.fh-wolfenbuettel.de/~riegler > _______________________________________________ > LON-CAPA-users mailing list > LON-CAPA-users@mail.lon-capa.org > http://mail.lon-capa.org/mailman/listinfo/lon-capa-users > --=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Justin Gray Tel. 778-782-4237 Dept. of Mathematics Fax. 778-782-4947 Simon Fraser University 8888 University Drive Burnaby, B.C. V5A 1S6 Canada ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ------=_Part_19250_443440.1188859969706 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Many thanks, Peter. This is exactly what I was looking for.<br><br>Justin<b= r><br><div><span class=3D"gmail_quote">On 9/3/07, <b class=3D"gmail_sendern= ame">Peter Riegler</b> &lt;<a href=3D"mailto:p.riegler@fh-wolfenbuettel.de"= >p.riegler@fh-wolfenbuettel.de </a>&gt; wrote:</span><blockquote class=3D"gmail_quote" style=3D"border-lef= t: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1= ex;">Hi Justin,<br><br>does &quot;elegant&quot; include two seperate input = fields, for demoninator and <br>numerator? Or did you come up with two input fields because otherwise<b= r>the lhs (i.e. non-rationalized) would be accepted if using sampling?<br>I= f so, I would suggest something like<br>&lt;formularesponse answer=3D&quot;= (m - 4)*(sqrt(m) + 4)/(m-16)&quot;&gt; <br><br>(I would prefer the students enter sqrt(m) rather than sqrtm).<br><= br>What the above does is to ask maxima<br>is( STUDENTSRESPONSE =3D (m - 4)= *(sqrt(m) + 4)/(m-16));<br><br>The important point here is that a student&#= 39;s reponse <br>(m-4)/(sqrt(m)-4)<br>would return false. The reason is, maxima does not= simplify before<br>comparison.<br><br>Hope this will help.<br><br>Peter<br= ><br>Justin Gray wrote:<br><br>&gt; Does anyone know a more elegant way to = write the problem below? <br>&gt;<br>&gt; Thanks,<br>&gt; Justin<br>&gt;<br>&gt; &lt;problem&gt;<br>= &gt; &lt;startouttext /&gt;Rationalize the denominator and simplify:&lt;p&g= t;&lt;/p&gt;&lt;br&gt;&lt;/br&gt;<br>&gt; Use sqrtm for &lt;m display =3D j= smath&gt;$\sqrt{m}&lt;/m&gt;.&lt;p&gt;&lt;/p&gt;
<br>&gt; &lt;table&gt;<br>&gt;<br>&gt; &lt;tr&gt;<br>&gt;&nbsp;&nbsp;&nbsp;=
&nbsp; &lt;td&gt;&lt;m display=3D&quot;jsMath&quot;&gt;\, \, \, \, $m - 4$&=
lt;/m&gt;&lt;/td&gt; &lt;td&gt;&lt;/td&gt;<br>&gt; &lt;td&gt;&lt;endouttext=
/&gt;<br>&gt; &lt;formularesponse samples=3D&quot;m,sqrtm@-3,-3:3,3#5&quot=
<br>&gt; 4)&quot; id=3D&quot;11&quot;&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;=
r>&gt;<br>&gt; &lt;/formularesponse&gt;&lt;startouttext /&gt;&lt;/td&gt;<br=
>&gt; &lt;/tr&gt;<br>&gt; &lt;tr&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;hr width=3D&quot;60&quot;&gt=
;&lt;/hr&gt;&lt;/td&gt; &lt;td&gt;&lt;m display=3D&quot;jsMath&quot;&gt;$\m= box{ } =3D<br>&gt; \mbox{ }$&lt;/m&gt;&lt;/td&gt; &lt;td&gt;&lt;hr width=3D=
&quot;140&quot;&gt;&lt;/hr&gt;&lt;/td&gt;
<br>&gt; &lt;/tr&gt;<br>&gt; &lt;tr&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt=
;td&gt;&lt;m display=3D&quot;jsMath&quot;&gt;$\sqrt{m} - 4$&lt;/m&gt;&lt;/t=
d&gt; &lt;td&gt;&lt;/td&gt;<br>&gt; &lt;td&gt;&lt;endouttext /&gt;<br>&gt; =
ot; id=3D&quot;12&quot;&gt;
uot; size=3D&quot;20&quot; /&gt;<br>&gt;<br>&gt; &lt;/formularesponse&gt;&l=
t;startouttext /&gt;&lt;/td&gt;<br>&gt; &lt;/tr&gt;<br>&gt; &lt;/table&gt;&=
lt;p&gt;&lt;/p&gt;&lt;endouttext /&gt;
<br>&gt; &lt;/problem&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; ~~~~~~~~~~~~~~=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>&gt; Justin Gray&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tel.<br>&=
gt; 778-782-4237<br>&gt; Dept. of Mathematics&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; Fax. 778-782-4947
<br>&gt; Simon Fraser University<br>&gt; 8888 University Drive<br>&gt; Burn=
aby, B.C. V5A 1S6<br>&gt; Canada<br>&gt; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=
~~~~~~~~~~~~~~~~~~~~~~~~~~<br><br>--<br>Peter Riegler<br>Fachhochschule Bra=
unschweig/Wolfenb=FCttel
<br>Salzdahlumer Str. 46/48, 38302 Wolfenb=FCttel<br>Tel. +49 5331 939 6314=
, Fax. +49 5331 939 6002<br>email: <a href=3D"mailto:p.riegler@fh-wolfenbue=
ttel.de">p.riegler@fh-wolfenbuettel.de</a><br><a href=3D"http://public.rz.f=
h-wolfenbuettel.de/~riegler">
http://public.rz.fh-wolfenbuettel.de/~riegler</a><br>______________________=
_________________________<br>LON-CAPA-users mailing list<br><a href=3D"mail=
to:LON-CAPA-users@mail.lon-capa.org">LON-CAPA-users@mail.lon-capa.org</a>
<br><a href=3D"http://mail.lon-capa.org/mailman/listinfo/lon-capa-users">ht=
tp://mail.lon-capa.org/mailman/listinfo/lon-capa-users</a><br></blockquote>=
</div><br><br clear=3D"all"><br>-- <br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=
~~~~~~~~~~~~~~~~~~~~~~~~
<br>Justin Gray&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;Tel. 778-782-4237<br>Dept. of Mathematics&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fax. 778-782-4947<br>Simon Fraser Unive=
rsity<br>8888 University Drive<br>Burnaby,=20