FLINT3.7.0-dev

arf_rsqrt

Synopsis#include <flint/arf.h>
int arf_rsqrt(arf_ptr z, arf_srcptr x, slong prec, arf_rnd_t rnd)source

Sets z to 1/x1/\sqrt{x}, correctly rounded for the strict modes. A negative x gives NaN and x=0x = 0 gives +∞+\infty. The relaxed modes are accepted.

As arf_div, with _arf_mpn_rsqrt (flint_mpn_rsqrthigh and flint_mpn_rsqrthigh_exact). The result is dyadic only for a power of four, handled exactly; all other results are inexact.

Cite this page

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