n_sqrt, n_sqrtrem
Synopsis
#include <flint/ulong_extras.h>n_sqrt computes the square root in IEEE double precision. If a is one below a square the rounding may be up, giving a result one too large, which is then corrected; care is taken that squaring the too-large value does not overflow.
Cite this page
The FLINT team, “n_sqrt, n_sqrtrem (ulong_extras.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ulong_extras/n_sqrt.html (generated 2026-10-20).
@misc{flint-doc-ulong-extras-n-sqrt,
author = {{The FLINT team}},
title = {{n\_sqrt, n\_sqrtrem (ulong\_extras.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/ulong_extras/n_sqrt.html},
note = {Generated 2026-10-20}
}