? collectterms
(%i10) ex:3*x*a+2*y*a+5*y*b+6*x*b;
(%o10) 5*b*y+2*a*y+6*b*x+3*a*x
(%i11) collectterms(ex,a,b);
(%o11) b*(5*y+6*x)+a*(2*y+3*x)
(%i12) collectterms(ex,x,y);
(%o12) (5*b+2*a)*y+(6*b+3*a)*x
(%i13) collectterms(ex,x,a);
(%o13) 5*b*y+2*a*y+6*b*x+3*a*x <<< can't be done
rat does something a bit different:
(%i14) rat(ex,a,b);
(%o14) (5*y+6*x)*b+(2*y+3*x)*a
(%i15) rat(ex,x,y);
(%o15) (5*b+2*a)*y+(6*b+3*a)*x
(%i16) rat(ex,x,a);
(%o16) (3*x+2*y)*a+6*b*x+5*b*y
(%i17) rat(ex,a,x);
(%o17) (3*a+6*b)*x+2*y*a+5*b*y
There is also the 'format' package -- load(format). For a demo, try
demo("format/format.demo"). There is also some documentation in the
share/contrib/format directory within the Maxima directory.
-s
On Thu, Nov 1, 2012 at 4:05 PM, Arnaud Megret <a_megret at yahoo.fr> wrote:
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>
>