Dear Sherm, thank you, this is very interesting, I'll definitely have a play with this. Best wishes, Markus On Mon, Jun 22, 2009 at 13:57, Howard Ostrowsky<shermost@xxxxxxxxx> wrote: > Here is a short session from MathPiper, showing how one can post-process a > common type of incomplete or confusing result from the Factor() function. > Hope this is helpful to some. > > MathPiper version ".75c" > In> u > Result> 2*a*x^2-4*a*x+2*a > In> Factor(u) > Result> FWatom(2*a*x^2-4*a*x+2*a) > COMMENT: Not very helpful! > In> Listify(%) > Result> {FWatom,2*a*x^2-4*a*x+2*a} > In> fu:=%[2] > Result> 2*a*x^2-4*a*x+2*a > COMMENT: Better, but still not factored! > In> fc:=Gcd(Coef(fu,x,0 .. 2)) > Result> 2*a > COMMENT: This discovers the constant factors > In> fc*Factor(Simplify(fu/fc)) > Result> 2*a*(x-1)^2 > COMMENT: Now, it's fully factored. > > Sherm > -- Markus Hohenwarter, PhD Florida Center for Research in Science, Technology, Engineering, and Mathematics Florida State University, www.fcrstem.org GeoGebra: www.geogebra.org IGI: www.geogebra.org/IGI CPALMS: www.cpalms.org