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)sourceSets 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).
@misc{flint-doc-fq-default-fq-default-ctx-modulus,
author = {{The FLINT team}},
title = {{fq\_default\_ctx\_modulus (fq\_default.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fq_default/fq_default_ctx_modulus.html},
note = {Generated 2026-10-20}
}