FLINT3.7.0-dev

arf_sqrt, arf_sqrt_ui, arf_sqrt_fmpz

Synopsis#include <flint/arf.h>
int arf_sqrt(arf_ptr z, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_sqrt_ui(arf_t z, ulong x, slong prec, arf_rnd_t rnd)source
int arf_sqrt_fmpz(arf_t z, const fmpz_t x, slong prec, arf_rnd_t rnd)source

Set z to \sqrt{x}, correctly rounded for the strict modes. A negative x gives NaN. The relaxed modes are accepted.

Cite this page

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