FLINT3.7.0-dev

gr_poly_is_zero, gr_poly_is_one, gr_poly_is_gen, gr_poly_is_scalar

Synopsis#include <flint/gr_poly.h>
truth_t gr_poly_is_zero(const gr_poly_t poly, gr_ctx_t ctx)source
truth_t gr_poly_is_one(const gr_poly_t poly, gr_ctx_t ctx)source
truth_t gr_poly_is_gen(const gr_poly_t poly, gr_ctx_t ctx)source
truth_t gr_poly_is_scalar(const gr_poly_t poly, gr_ctx_t ctx)source

Return whether poly is 0, 1, the generator x, or a constant polynomial. Coefficients that are not provably zero or one make the answer T_UNKNOWN.

Cite this page

The FLINT team, “gr_poly_is_zero, gr_poly_is_one, gr_poly_is_gen, gr_poly_is_scalar (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_zero.html (generated 2026-10-20).