Arnaud,
Try looking at the format package (docs attached).
load("format");
p:3*x*a+2*y*a+5*y*b+6*x*b;
format(p,%poly(a),%poly(b));
Chris
From: maxima-bounces at math.utexas.edu [mailto:maxima-bounces at math.utexas.edu] On Behalf Of Arnaud Megret
Sent: 01 November 2012 15:05
To: maxima at math.utexas.edu
Subject: clustering factors in a sum
Hi,
I am new to maxima. So I have a beginner question.
consider the expression : 3xa+2ya+5yb+6xb
How can we factorize in order to get :
a.(3x+2y) + b.(6x+5y)
or
x.(3a+6b)+y.(2a+5b)
Thanks,
Arnaud Megret
-------------- next part --------------
A non-text attachment was scrubbed...
Name: format.pdf
Type: application/pdf
Size: 232877 bytes
Desc: format.pdf
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20121101/48027282/attachment-0001.pdf>