FLINT3.7.0-dev

nmod_poly_is_one, nmod_poly_is_gen

Synopsis#include <flint/nmod_poly.h>
int nmod_poly_is_one(const nmod_poly_t poly)source
int nmod_poly_is_gen(const nmod_poly_t poly)source

Return whether poly is the constant 1, respectively the generator x. For n = 1 both return 1, since every polynomial is zero modulo 1.

Guides#

Cite this page

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