_mp_real_rsqrt_newton_basecase, _mp_real_rsqrt_newton
#include <flint/mp_real.h>For a \in [B^{-2}, 1) with one of its top two limbs nonzero, set (q, n + 2) to an approximation of 1/\sqrt{a} \in (1, B] with absolute error at most 4 B^{-n}/\sqrt{a}.
The basecase combines flint_mpn_sqrtrem and flint_mpn_tdiv_qr. The main function performs third-order steps from T \approx a^{-1/2} at about n/3 limbs:
with u formed as a band of the product, u^2 from its top limbs and Tw by a middle product; the neglected term (5/16)u^3 T is below the rounding. flint_mpn_sqrtrem takes its reciprocal square root from this function in its Newton regime.
The FLINT team, “_mp_real_rsqrt_newton_basecase, _mp_real_rsqrt_newton (mp_real.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mp_real/_mp_real_rsqrt_newton_basecase.html (generated 2026-10-20).
@misc{flint-doc-mp-real-mp-real-rsqrt-newton-basecase,
author = {{The FLINT team}},
title = {{\_mp\_real\_rsqrt\_newton\_basecase, \_mp\_real\_rsqrt\_newton (mp\_real.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/mp_real/_mp_real_rsqrt_newton_basecase.html},
note = {Generated 2026-10-20}
}