display expression exactly as entered




> That's because the dd(x/x) should have been on a new line.?

Thanks.? I did have it on a new line (in WxMaxima).
To make it work in WxMaxima, I had to put it in a new cell
(posted for the benefit of any other readers using
WxMaxima who may want to use this)





________________________________
From: Rupert Swarbrick <rswarbrick at gmail.com>
To: maxima at math.utexas.edu
Sent: Tuesday, October 25, 2011 10:20 AM
Subject: Re: [Maxima] display expression exactly as entered

Ether Jones <maxima at etherjones.us> writes:
> (%i1) :lisp (defmacro $dd (x) `(progn (displa '((mlable) Raw ,x)) (terpri) ',x))
> ????? dd(x/x);
>
> Maxima encountered a Lisp error:
> ? Error in PROGN [or a callee]: The variable DD is unbound.
> Automatically continuing.
> To enable the Lisp debugger set *debugger-hook* to nil.

That's because the dd(x/x) should have been on a new line. What you
typed made the lisp try to evaluate three forms

(defmacro $dd (x) `(progn (displa '((mlable) Raw ,x)) (terpri) ',x))
dd
(x/x)

the third calls a (nonexistant) function called x/x. If the "dd" form
hadn't caused your lisp implementation to error out, it would have done
too.

Rupert

_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima