newbie question



 "Paul J. Ste. Marie" <paul_j at ste-marie.org> wrote:

> sol_1: cx = -((b^2-1)*y2+(1-b^2)*y1-2*b*x2-2*b*x1)/(4*b)
> 
> (b^2-1) and 2*b are both have two terms in the denominator, but I can't 
> get maxima to combine them.  Eg. what I want as the intermediate result is:
> 
>  cx = -((b^2-1)*(y2-y1)-2*b*(x1+x2))/(4*b)

Try this:

sol_1: cx = -((b^2-1)*y2+(1-b^2)*y1-2*b*x2-2*b*x1)/(4*b), (1-b^2) = box(1-b^2), (b^2-1) = -box(1-b^2) ; 
lhs(sol_1)=factorsum(rhs(sol_1));
sol_1: rembox(%);

Best

  Pepe
________________________________________________________________
           
Jose Sanchez-Marin.
 Universitat de Valencia.
 Spain 				   					e-mail: Jose.Sanchez at uv.es	   
 _________________________________________________________________