ARF_RND_FAST, ARF_RND_ACCURATE
#include <flint/arf.h>ARF_RND_FASTARF_RND_ACCURATERelaxed modes, accepted by division, square root and reciprocal square root (arf_div, arf_sqrt, arf_rsqrt and the functions built on them) and by the elementary functions (Elementary functions). The result differs from the exact value by at most one unit in the last place in either direction (ARF_RND_FAST), respectively by at most 0.51 units (ARF_RND_ACCURATE). The return value is the inexact flag, as with the strict modes: it is 0 if and only if the result equals the exact value (for the elementary functions, a 0 flag means an exact result, but an exact result may come with the flag 1; see Elementary functions).
A unit in the last place here is where for the exact result . The functions treat the relaxed modes as the strict modes of arf_rnd_relaxed_to_strict (ARF_RND_DOWN for ARF_RND_FAST, ARF_RND_NEAR for ARF_RND_ACCURATE), which the limb-array kernels (see Limb-array kernels) perform correctly at every precision, so the inexact flag is as reliable as with the strict modes.
Guides#
The FLINT team, “ARF_RND_FAST, ARF_RND_ACCURATE (arf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arf/ARF_RND_FAST.html (generated 2026-11-20).
@misc{flint-doc-arf-ARF-RND-FAST,
author = {{The FLINT team}},
title = {{ARF\_RND\_FAST, ARF\_RND\_ACCURATE (arf.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/arf/ARF_RND_FAST.html},
note = {Generated 2026-11-20}
}