Quick
index
main
eev
eepitch
maths
angg
blogme
dednat6
littlelangs
PURO
(C2,C3,C4,
 λ,ES,
 GA,MD,
 Caepro,
 textos,
 Chapa 1)

emacs
lua
(la)tex
maxima
 qdraw
git
lean4
agda
forth
squeak
icon
tcl
tikz
fvwm
debian
irc
contact

LuaTree: Draw Maxima objects as trees (using Lua; 2022, obsolete!)

To draw Maxima objects as trees - as in the first screenshot below - I used a program that is made of three files: luatree.mac, luatree.lisp, luatree.lua. Its git repository is here, and you can test it by running the test block at the end of luatree.mac. There is an explanation of luatree here.

The screenshot at the right below shows a (primitive) port of luatree to SymPy. Its code is here: luatree.py.

Update: LuaTree is obsolete!!! Use LispTree instead!!!!!!!!!!!!
LuaTree was somewhat hard to install, because it nedeed:

  • Lua5.1 - see the first line of luatree.lua,
  • asdf, uiop, and uiop:run-program - see luatree.lisp,
  • a Maxima compiled with a Lisp that supported ASDF,
  • ...the Maxima that comes with Debian is compiled with GCL, that does not support ASDF, so...
  • on Debian people would need a Maxima from git, compiled with "./configure --enable-sbcl" or something similar.

Also, the output of LuaTree was not very nice: it didn't distinguish strings and symbols, and it didn't distinguish all kinds of symbols... and when it received something like a(b)(c) or a[b][c] it simply aborted with an error.