|
From: Eduardo O. <edu...@gm...> - 2022-07-11 02:33:12
|
On Sun, 10 Jul 2022 at 12:32, Stavros Macrakis <mac...@al...> wrote:
> (...)
Hi Stavros,
I wasn't even aware that this internal representation existed! Many
thanks!!!
Is there a way to make Maxima say where a function is defined, i.e.,
something like "changevar is defined in the `defun changevar' in line
345 of outmis.lisp"? Anything in that direction would help me a lot -
Emacs Lisp and Common Lisp are very different in that part...
> I don't know what exactly your goal is with *foo1* (maybe just a
> test), but a few observations:
My, aham, "academic excuse" for playing with that is that in this
semester several students who took my course of Calculus 2 had never
seen how expressions can be represented as trees... then I thought
that it would be fun & useful to me to have a way to export the
internal representations of expressions to Lua, because I already have
lots of functions in Lua to draw trees, both in ascii art and as
figures in LaTeX.
Another basic question: if I run this,
ex1 : a*b/c;
:lisp #$ex1$
I get the internal representation of ex1, which is:
((MTIMES SIMP) $A $B ((MEXPT SIMP) $C -1))
How do I get a sexp that is closer to the displayed form?
Thanks in advance! =)
Eduardo Ochs
http://angg.twu.net/eev-maxima.html
|