Factor2[poly]
factors a polynomial in a standard way.
Factor2
works sometimes better than Factor on polynomials involving rationals with sums in the denominator.
Factor2
uses Factor
internally and is in general slower than Factor
. There are four possible settings of the option Method
(0
,1
,2
,3
). In general, Factor
will work faster than Factor2
.
a - x) (b - x)
(
{Factor2[%], Factor[%]}
(a-x) (b-x)
\{(a-x) (b-x),-((a-x) (x-b))\}
= Expand[(a - b) (a + b)] ex
a^2-b^2
Factor[ex]
(a-b) (a+b)
[ex] Factor2
a^2-b^2
[ex, FactorFull -> True] Factor2
(a-b) (a+b)