FLINT3.7.0-dev

radix_sqrt

Synopsis#include <flint/radix.h>
int radix_sqrt(nn_ptr s, nn_srcptr a, slong an, const radix_t radix)source

Sets (s, \lceil \mathit{an}/2 \rceil) to \lfloor \sqrt a \rfloor and returns 1 if a is a perfect square and 0 otherwise. Requires \mathit{an} \ge 1 and a_{an-1} \ne 0.

Cite this page

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