FLINT3.7.0-dev

padic_radix_inv, padic_radix_div

Synopsis#include <flint/padic_radix.h>
int padic_radix_inv(padic_radix_t res, const padic_radix_t x, gr_ctx_t ctx)source
int padic_radix_div(padic_radix_t res, const padic_radix_t x, const padic_radix_t y, gr_ctx_t ctx)source

Set res to 1/x, respectively x/y. The relative precision of the result is the smaller relative precision of the operands, capped by the context. Exact operands give an exact result when the quotient terminates (for example 1/49 or 6/3). Return GR_DOMAIN when dividing by an exact zero, and GR_UNABLE when the divisor is not known to be nonzero or when the context is exact and the quotient has an infinite expansion.

Guides#

Cite this page

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