FLINT3.7.0-dev

_nmod_poly_is_squarefree, nmod_poly_is_squarefree

Synopsis#include <flint/nmod_poly_factor.h>
int _nmod_poly_is_squarefree(nn_srcptr f, slong len, nmod_t mod)source
int nmod_poly_is_squarefree(const nmod_poly_t f)source

Return whether f (given as (f, len) in the underscore version, with any \mathit{len} \ge 0) is squarefree, by testing whether \gcd(f, f') = 1; if f' = 0 and \deg f \ge 2, then f is a p-th power and not squarefree. Nonzero constants are squarefree; as a special case, the zero polynomial is not.

Cite this page

The FLINT team, “_nmod_poly_is_squarefree, nmod_poly_is_squarefree (nmod_poly_factor.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod_poly_factor/_nmod_poly_is_squarefree.html (generated 2026-10-20).