Skip to content

SquareFreeQ

Tests if a polynomial or integer is square-free.

$ wo 'SquareFreeQ[1]'
True

A univariate polynomial is square-free when it has no repeated factor:

$ wo 'SquareFreeQ[x^2 - 1]'
True
$ wo 'SquareFreeQ[(x - 1)^2]'
False