# [LON-CAPA-users] calculus features of maxima available

Jay Sullivan lon-capa-users@mail.lon-capa.org
Sat, 22 Nov 2008 17:26:00 -0500

```------=_Part_33416_12745604.1227392760854
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

maxima woes part II:

Is the perl variable \$root reserved for something special?

This problem displays (correctly)  "3" on the screen:

<problem>
<script type="loncapa/perl">
\$d = &cas('maxima',"diff(3*x+1,x)");
</script>
\$d <br/>
</problem>

This problem displays "\$root" on the screen:

<problem>
<script type="loncapa/perl">
\$root  = &cas('maxima',"diff(3*x+1,x)");
</script>
\$root <br/>
</problem>

Note, that the only difference in the above is using \$root rather than \$d.

??????????????
Jay

------=_Part_33416_12745604.1227392760854
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

maxima woes part II:<br><br>Is the perl variable \$root reserved for something special? <br><br>This problem displays (correctly)&nbsp; &quot;3&quot; on the screen:<br><br>&lt;problem&gt;<br>&lt;script type=&quot;loncapa/perl&quot;&gt;<br>
\$d = &amp;cas(&#39;maxima&#39;,&quot;diff(3*x+1,x)&quot;);<br>&lt;/script&gt;<br>\$d &lt;br/&gt;<br>&lt;/problem&gt;<br><br>This problem displays &quot;\$root&quot; on the screen:<br><br>&lt;problem&gt;<br>
&lt;script type=&quot;loncapa/perl&quot;&gt;<br>
\$root&nbsp; = &amp;cas(&#39;maxima&#39;,&quot;diff(3*x+1,x)&quot;);<br>
&lt;/script&gt;<br>
\$root &lt;br/&gt;<br>
&lt;/problem&gt;<br><br>Note, that the only difference in the above is using \$root rather than \$d.<br><br>??????????????<br>Jay<br>

------=_Part_33416_12745604.1227392760854--

```