FLINT3.7.0-dev

arf_root

Synopsis#include <flint/arf.h>
int arf_root(arf_ptr z, arf_srcptr x, ulong k, slong prec, arf_rnd_t rnd)source

Sets z to x^{1/k}, correctly rounded. A negative x gives NaN.

This is a wrapper of the MPFR root function, which becomes slow and uses much memory for large k; arb_root_ui is usually a better choice.

Cite this page

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