FLINT3.7.0-dev

fq_default_ctx_modulus

Synopsis#include <flint/fq_default.h>
void fq_default_ctx_modulus(fmpz_mod_poly_t p, const fq_default_ctx_t ctx)source

Sets p to the defining polynomial of the field. The fmpz_mod_poly must have been initialised with a context whose modulus is the characteristic. For a prime field the result is x - a, where a is the generator.

Cite this page

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