Internal form of expressions



Wilhelm Haager wrote:
> Hi,
>
> Is there a possibility to display the "internal form" of expressions
> (like the "FullForm" in Mathematica) in Maxima, e.g.
> which displays the expression
>
>     x/sqrt(5)+y**2+1/z
>
> in the form
>
>     "+"("/"(x,sqrt(5)),"^"(y,2),"/"(1,z))
>
>   
This is what I do when I need to see the internal representation:

(%i12) x/sqrt(5)+y**2+1/z;
(%o12) 1/z+y^2+x/sqrt(5)
(%i13) :lisp $%o12

((MPLUS . #1=(SIMP)) ((MTIMES . #1#) ((MEXPT SIMP) 5 ((RAT SIMP) -1 2)) $X)
 (#2=(MEXPT . #1#) $Y 2) (#2# $Z -1))


Hmm.  The recent change to make *print-circle* set to T makes it much
harder (for me) to read the expression.

(%i13) :lisp (setf *print-circle* nil)

NIL
(%i13) :lisp $%o12

((MPLUS SIMP) ((MTIMES SIMP) ((MEXPT SIMP) 5 ((RAT SIMP) -1 2)) $X)
 ((MEXPT SIMP) $Y 2) ((MEXPT SIMP) $Z -1))

There.  that's better.

But perhaps you were looking for a different result?

Ray