acf_sqrt, acf_rsqrt
#include <flint/acf.h>Set res to the principal square root of x, respectively its reciprocal, with each part correctly rounded (the relaxed modes as described above). The dyadic roots are computed exactly; otherwise the complex kernels of Limb-array kernels (or, for exponents beyond them, the compositions , and their quotients by at prec + 64 bits), and a part that these leave undecided is decided exactly from the sign of a polynomial in , and the rounding boundary next to it, without retries. Real and purely imaginary arguments are handled by the real roots; rsqrt(0) is .
The FLINT team, “acf_sqrt, acf_rsqrt (acf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/acf/acf_sqrt.html (generated 2026-11-17).
@misc{flint-doc-acf-acf-sqrt,
author = {{The FLINT team}},
title = {{acf\_sqrt, acf\_rsqrt (acf.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/acf/acf_sqrt.html},
note = {Generated 2026-11-17}
}