Hi,
try with the format package:
(%i1) load("format/format")$
(%i2) load("format/coeflist")$
(%i3) -(y*(G2-G1)+x*(-G2-G1)-n)/2;
(%o3) (-y*(G2-G1)-x*(-G2-G1)+n)/2
(%i4) format(%, %poly(x,y));
(%o4) (x*(G2+G1))/2+(y*(G1-G2))/2+n/2
HTH,
Andrej
On 4/11/06, andrea zonca <andrea.zonca at gmail.com> wrote:
> hi,
> I have a very simple expression:
> -(y*(G2-G1)+x*(-G2-G1)-n)/2
> and I want to transform it in a form like:
> (G1-G2)y (G2+G1)x n
> ------------- + --------- + ----
> 2 2 2
>
> It looks simple, I've tried with ratsimp(%,x,y)
> but I cant figure out how to manage the sign and
> the denominator,
> could someone please help?
> thanks
>
> andrea
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>