FLINT3.7.0-dev

arb_rel_error_bits, arb_rel_accuracy_bits

Synopsis#include <flint/arb.h>
slong arb_rel_error_bits(const arb_t x)source
slong arb_rel_accuracy_bits(const arb_t x)source

arb_rel_error_bits returns e_r - e_m + 1, where e_m and e_r are the exponents of the midpoint and radius (2^{e-1} \le |\cdot| < 2^e): an estimate of \log_2(r/|m|) rounded up. arb_rel_accuracy_bits returns its negation, the number of correct bits. The value is clamped to \pmARF_PREC_EXACT: an exact ball has accuracy ARF_PREC_EXACT, and a ball with a special midpoint or an infinite radius has accuracy -ARF_PREC_EXACT.

Cite this page

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