The sqrfree command provides squarefree factorizations of polynomials; that is, it factors a polynomial as a product of powers of coprime factors, where each factor has roots of multiplicity 1 (in other words, a factor and its derivative are coprime).
| sqrfree((x^2-1)*(x-1)*(x+2)) |
|
| sqrfree((x^2-1)^2*(x-1)*(x+2)^2) |
|