FLINT3.7.0-dev

qadic_ctx_init

Synopsis#include <flint/qadic.h>
void qadic_ctx_init(qadic_ctx_t ctx, const fmpz_t p, slong d, slong min, slong max, const char * var, enum padic_print_mode mode)source

Initialises ctx for the extension of degree d \ge 1 of \mathbf{Q}_p, with powers p^e for \mathtt{min} \le e < \mathtt{max} precomputed, generator name var and printing mode mode. The defining polynomial is the Conway polynomial for (p, d) if the database contains it, otherwise for word-size p the polynomial of nmod_poly_minimal_irreducible (a binomial, trinomial, tetranomial or pentanomial), and otherwise a random sparse irreducible polynomial. The prime p is not checked.

Cite this page

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