FLINT3.7.0-dev

mag_inv, mag_inv_lower

Synopsis#include <flint/mag.h>
void mag_inv(mag_t res, const mag_t x)source
void mag_inv_lower(mag_t res, const mag_t x)source

Set res to an upper, respectively lower, bound for 1 / x. The upper bound for 1/0 is +\infty; the lower bound for 1/0 is 0, which is valid but weak.

Cite this page

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