FLINT3.7.0-dev

nf_elem_is_gen

Synopsis#include <flint/nf_elem.h>
int nf_elem_is_gen(const nf_elem_t a, const nf_t nf)source

Returns whether a equals the generator \theta. In a field of degree 1 with defining polynomial f = f_1 x + f_0, the generator is the rational number -f_0/f_1.

Cite this page

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