FLINT3.7.0-dev

gr_poly_is_squarefree

Synopsis#include <flint/gr_poly.h>
truth_t gr_poly_is_squarefree(const gr_poly_t f, gr_ctx_t ctx)source

Returns whether f is squarefree. Unless the ring is known to be a field, the answer is T_UNKNOWN. Over a field the test is \gcd(f, f') = 1; in positive characteristic a nonconstant f with f' = 0 is a p-th power and hence not squarefree if the field is finite, and T_UNKNOWN is returned if finiteness cannot be verified. Nonzero constants are squarefree and zero is not.

Cite this page

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