FLINT3.7.0-dev

gr_gen

Synopsis#include <flint/gr.h>
int gr_gen(gr_ptr res, gr_ctx_t ctx)source

Sets res to the generator of the ring: x in R[x] or R[[x]], the generator of the defining polynomial in a finite field or number field, the image of x in a quotient ring R[x]/(m). Returns GR_UNABLE for rings without a distinguished generator.

Guides#

Cite this page

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