MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: Factor Polynomials

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34317] RE: [mg34267] Factor Polynomials
  • From: "Wolf, Hartmut" <Hartmut.Wolf at t-systems.com>
  • Date: Tue, 14 May 2002 04:12:43 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

> -----Original Message-----
> From: Nikola [mailto:nletic at hotmail.com]
To: mathgroup at smc.vnet.net
> Sent: Monday, May 13, 2002 11:54 AM
> To: mathgroup at smc.vnet.net
> Subject: [mg34317] [mg34267] Factor Polynomials
> 
> 
> Hi,
> how can I factor polynomials like these:
> x^2+y^2-2 x y+x1^2 +y1^2-2x1 y1
> so I get result:
> (x-y)^2+(x1-y1)^2
> Factor and other similar functions don't do anything in this case.
> Thanks
> Nikola
> 
> 
> 
> 
Nikola,

what are the other "similar functions" you tried? This one does it:

In[4]:= FullSimplify[x^2 + y^2 - 2 x y + x1^2 + y1^2 - 2x1 y1]
Out[4]= (x - y)^2 + (x1 - y1)^2

Even if your first idea was to try Factor, using Help would have reveiled
how this idea fails, and two mouse clicks away, guided you to FullSimplify
(and further stuff to read in the book). 

--
Hartmut



  • Prev by Date: RE: Conditional evaluation
  • Next by Date: Re: Conditional evaluation
  • Previous by thread: RE: Factor Polynomials
  • Next by thread: Re: Factor Polynomials