On Nov 30, 2007 4:58 AM, praimon <praimon at gmail.com> wrote:
> (%i1) load(format)$
>
> (%i2) format((a+b*x)*(c-x)^2,%poly(x),%factor);
> Maxima encountered a Lisp error:
>
> Error in DO [or a callee]: The function LSH is undefined.
This has been just fixed in cvs. You can update the file coeflist.lisp
in share/contrib/format with the one from cvs and it should work also
in 5.13.
(%i3) format((a+b*x)*(c-x)^2,%poly(x),%factor);
(%o3) b*x^3+(a-2*b*c)*x^2+c*(b*c-2*a)*x+a*c^2
> (%i3) format((1+2*a+a^2)*b + a*(1+2*b+b^2),%sum,%product,%factor);
> Maxima encountered a Lisp error:
>
> Error in MAP1 [or a callee]: Caught fatal error [memory may be damaged]
The cvs version with cmucl works as expected:
(%i4) format((1+2*a+a^2)*b + a*(1+2*b+b^2),%sum,%product,%factor);
(%o4) a*(b+1)^2+(a+1)^2*b
Maybe it is a problem with gcl.
--
Andrej