[LON-CAPA-users] maxima question

Jay Sullivan lon-capa-users@mail.lon-capa.org
Thu, 27 Nov 2008 09:12:29 -0500


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

Super! So simple....
Thanks,
Jay


On Wed, Nov 26, 2008 at 3:29 PM, Peter Riegler <
p.riegler@fh-wolfenbuettel.de> wrote:

> Hi Jay,
>
> this should work:
> $zero =3D &cas('maxima','ev(x, realroots(x-1) )');
>
> Peter
>
>
> Jay Sullivan wrote:
>
>  This is more of a maxima question, than a loncapa question, but I figure
>> somebody out there must have coded this type of problem before in loncap=
a.
>>
>> How do I get maxima to just report a number back as the output?
>>
>> For example, if use
>>
>> $zero =3D &cas('maxima','realroots(x-1)');
>>
>> The value of $zero is set to be [x =3D 1]
>>
>> I would like for the value of $zero to simply be 1.
>>
>> Thanks,
>> Jay
>>
>>
>>
> --
> 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<http://public.rz.fh-wolfenb=
uettel.de/%7Eriegler>
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users@mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
>

------=_Part_43522_18054252.1227795149576
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Super! So simple....<br>Thanks,<br>Jay<br><br><br><div class=3D"gmail_quote=
">On Wed, Nov 26, 2008 at 3:29 PM, Peter Riegler <span dir=3D"ltr">&lt;<a h=
ref=3D"mailto:p.riegler@fh-wolfenbuettel.de">p.riegler@fh-wolfenbuettel.de<=
/a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Jay,<br>
<br>
this should work:<br>
$zero =3D &amp;cas(&#39;maxima&#39;,&#39;ev(x, realroots(x-1) )&#39;);<br>
<br>
Peter<div><div></div><div class=3D"Wj3C7c"><br>
<br>
Jay Sullivan wrote:<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This is more of a maxima question, than a loncapa question, but I figure so=
mebody out there must have coded this type of problem before in loncapa.<br=
>
<br>
How do I get maxima to just report a number back as the output?<br>
<br>
For example, if use<br>
<br>
$zero =3D &amp;cas(&#39;maxima&#39;,&#39;realroots(x-1)&#39;);<br>
<br>
The value of $zero is set to be [x =3D 1]<br>
<br>
I would like for the value of $zero to simply be 1.<br>
<br>
Thanks,<br>
Jay<br>
<br>
<br>
</blockquote>
<br></div></div>
-- <br>
Peter Riegler<br>
Fachhochschule Braunschweig/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-wolfenbuettel.de" target=3D"_blank">p=
.riegler@fh-wolfenbuettel.de</a><br>
<a href=3D"http://public.rz.fh-wolfenbuettel.de/%7Eriegler" target=3D"_blan=
k">http://public.rz.fh-wolfenbuettel.de/~riegler</a><br>
_______________________________________________<br>
LON-CAPA-users mailing list<br>
<a href=3D"mailto:LON-CAPA-users@mail.lon-capa.org" target=3D"_blank">LON-C=
APA-users@mail.lon-capa.org</a><br>
<a href=3D"http://mail.lon-capa.org/mailman/listinfo/lon-capa-users" target=
=3D"_blank">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</a><br=
>
</blockquote></div><br>

------=_Part_43522_18054252.1227795149576--