[LON-CAPA-users] maxima question
Peter Riegler
lon-capa-users@mail.lon-capa.org
Wed, 26 Nov 2008 21:29:15 +0100
Hi Jay,
this should work:
$zero = &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 loncapa.
>
> How do I get maxima to just report a number back as the output?
>
> For example, if use
>
> $zero = &cas('maxima','realroots(x-1)');
>
> The value of $zero is set to be [x = 1]
>
> I would like for the value of $zero to simply be 1.
>
> Thanks,
> Jay
>
>
--
Peter Riegler
Fachhochschule Braunschweig/Wolfenbüttel
Salzdahlumer Str. 46/48, 38302 Wolfenbüttel
Tel. +49 5331 939 6314, Fax. +49 5331 939 6002
email: p.riegler@fh-wolfenbuettel.de
http://public.rz.fh-wolfenbuettel.de/~riegler