On 2015-01-19, Nils Bruin <[email protected]> wrote:

>> (require `maxima)
> [...]
>> (in-package :maxima)
> MAXIMA> #$2+2$ 
>
> 4
> MAXIMA> '#$x+5$
>
> (MEVAL* '((MPLUS) $X 5))
> MAXIMA> (meval '((mplus) 2 2))
>
> 4

One more thing that might be relevant in this context. You can call
the DISPLA (note the lack of a trailing y) function to pretty print
a Maxima expression. E.g.

  MAXIMA> (displa '((mplus) 2 2))
   => 2 + 2

Of course it works equally well with the output of some operation:

  MAXIMA> (displa (meval* '((mplus) $x $x)))
   => 2 x

Maxima is a many-splendored thing but I'll leave it at that for now.

best,

Robert Dodier

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to