Got a few fairly minor usage questions today.
1) How do you deal with %R variables? Maxima sticks them in results
sometimes, I believe when there's e.g. an arbitrary constant in the
expression. But they're always %Rn, where n seems to get incremented
every time a calculation introduces a new one. That makes it hard to
write macros that for instance clean up the expression by doing
something like "subst (1. %R1, expr);"
2) How to coerce maxima into simplifying expressions? It will sometimes
produce results like
2 A + 2 %I B
------------
2
I've tried using simplify and similar things, but haven't found any way
to turn it into a simple "A + %I B".
3) And finally (for today, anyway!) is there a flag to tell it to print
array indices as indices, rather than trying to do fake subscripts? That
is, when i type something like A [1][2], on output Maxima turns it into
A instead of giving back " A [1][2]", which I'd want even if
1 2
it was typeset with Tex. Not to mention that it's quite difficult, on a
multi-line output, to decipher which are supposed to be subscripts, and
which exponents :-)
Thanks,
James