p
in linear, quadratic, cubic etc factors
is accomplished by sqfr(p)
. Returned is a vector of factors
sorted in ascending order of the exponents.
>> syms x >> y=(x-1)^3*(x-2)^2*(x-3)*(x-4) y = x^7-14*x^6+80*x^5-242*x^4+419*x^3-416*x^2+220*x-48 >> z=sqfr(y) z = [ x^2-7*x+12 x-2 x-1 ]