[LON-CAPA-users] maxima question
Jay Sullivan
lon-capa-users@mail.lon-capa.org
Mon, 24 Nov 2008 11:38:57 -0500
------=_Part_55668_21209578.1227544737286
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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
------=_Part_55668_21209578.1227544737286
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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.<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 = &cas('maxima','realroots(x-1)');<br><br>The value of $zero is set to be
[x = 1]<br><br>I would like for the value of $zero to simply be 1.<br><br>Thanks,<br>Jay<br><br><br>
------=_Part_55668_21209578.1227544737286--