FactorSquareFree

FactorSquareFree[poly] computes the square free factorization of poly.

Attributes[FactorSquareFree] := {Listable, Protected}

Simple examples

In[1]:= FactorSquareFree[1 + (2*x^2)*-1 + x^4]
Out[1]= (-1 + x^2)^2
In[2]:= FactorSquareFree[1 + x^2*-1 + x^3*-1 + x^5]
Out[2]= (-1 + x)^2*(1 + 2*x + 2*x^2 + x^3)
In[3]:= FactorSquareFree[18 + (39*x)*-1 + 29*x^2 + (9*x^3)*-1 + x^4]
Out[3]= (-3 + x)^2*(2 + (3*x)*-1 + x^2)
In[4]:= FactorSquareFree[-108 + (108*x)*-1 + 207*x^2 + 239*x^3 + (81*x^4)*-1 + (153*x^5)*-1 + (27*x^6)*-1 + 21*x^7 + 9*x^8 + x^9]
Out[4]= (3 + x)^3*(-4 + x^2)*(-1 + x^2)^2