maxima programming questions



On 4/30/10, Camm Maguire <camm at maguirefamily.org> wrote:

> load(powers);
> (%o1)         /usr/share/maxima/5.21.1/share/contrib/powers.lisp
> (%i2) powers(g^2,g);
> (%o2)                                 [2]
> (%i3) declare(g,constant);
> (%o3)                                done
> (%i4) powers(g^2,g);
>
> The second argument of "$powers" must be a symbol, instead found g

Well, powers wants g to be a variable; that is supposed to exclude
%pi etc. Here g is declared constant. Should powers be happy with
that? I dunno.

> (%i179) ssubst("\\left[","",ss);
>
> ssubst: improper arguments.

Did you mean ssubst("", "\\left[", ss) instead?
The error message is uninformative but that's a separate problem.

> Have some tex/latex suggestions if anyone at all is interested.  The
> existing code won't compile under amslatex, considered the modern
> standard.

I would like to hear about that. If you are interested to follow up,
please start a separate thread about it.

best

Robert Dodier