padic_inv
Synopsis
#include <flint/padic.h>void padic_inv(padic_t rop, const padic_t op, const padic_ctx_t ctx)sourceSets rop to , reduced. For this is times the inverse of modulo , computed by Hensel lifting; if the result is zero. Throws if op is zero.
The inverse modulo is computed by the extended Euclidean algorithm and lifted by the Newton iteration , which doubles the number of correct digits in each step (Hensel lifting of inverses, square roots and Teichmüller lifts). For the iteration runs directly on the limbs (fmpz_invmod_2exp).
Guides#
Cite this page
The FLINT team, “padic_inv (padic.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/padic/padic_inv.html (generated 2026-11-02).
@misc{flint-doc-padic-padic-inv,
author = {{The FLINT team}},
title = {{padic\_inv (padic.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/padic/padic_inv.html},
note = {Generated 2026-11-02}
}