padic_ctx_init
Synopsis
#include <flint/padic.h>void padic_ctx_init(padic_ctx_t ctx, const fmpz_t p, slong min, slong max, enum padic_print_mode mode)sourceInitialises ctx for the prime with precomputed powers for and the given printing mode. Throws unless . That is prime is not checked; for composite the behaviour is undefined.
The table is used by every reduction modulo , so it should cover the differences that occur, typically from 0 to a little more than the largest precision in use. Other powers are computed when needed. With no table is stored.
Guides#
Cite this page
The FLINT team, “padic_ctx_init (padic.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/padic/padic_ctx_init.html (generated 2026-11-02).
@misc{flint-doc-padic-padic-ctx-init,
author = {{The FLINT team}},
title = {{padic\_ctx\_init (padic.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/padic/padic_ctx_init.html},
note = {Generated 2026-11-02}
}