FLINT3.7.0-dev

fq_gen

Synopsis#include <flint/fq.h>
void fq_gen(fq_t rop, const fq_ctx_t ctx)source

Sets rop to the generator of the field, the class of x, a root of the defining polynomial. For d = 1 this is the root -c_0/c_1 of f = c_1 x + c_0. The generator generates the multiplicative group if and only if f is primitive, which holds for Conway polynomials.

Cite this page

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