FLINT3.7.0-dev

gr_ctx_fq_prime, gr_ctx_fq_degree, gr_ctx_fq_order

Synopsis#include <flint/gr.h>
int gr_ctx_fq_prime(fmpz_t p, gr_ctx_t ctx)source
int gr_ctx_fq_degree(slong * deg, gr_ctx_t ctx)source
int gr_ctx_fq_order(fmpz_t q, gr_ctx_t ctx)source

Set the characteristic p, the degree d over the prime field and the order q = p^d of the finite field \mathbb{F}_q.

Cite this page

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