FLINT3.7.0-dev

gr_ctx_init_padic_radix

Synopsis#include <flint/padic_radix.h>
int gr_ctx_init_padic_radix(gr_ctx_t ctx, ulong p, slong prec_rel, slong prec_abs, int flags)source

Initialises ctx for \mathbf{Q}_p with default relative precision prec_rel and absolute precision prec_abs, either of which may be PADIC_RADIX_PREC_INF, and the given combination of the flags below. Negative relative precisions are raised to 0, and finite precisions are clamped to \pmPADIC_RADIX_ERR_MAX. That p is prime is only checked in builds with assertions. Returns GR_SUCCESS. The context is a field in the sense of gr_ctx_is_field, and is exact if and only if both precisions are infinite.

Guides#

Cite this page

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