FLINT3.7.0-dev

_mp_real_add_error_ulps, _mp_real_add_error_ulps_at

Synopsis#include <flint/mp_real.h>
void _mp_real_add_error_ulps(mp_real_t x, double v)source
void _mp_real_add_error_ulps_at(mp_real_t x, double v, slong anchor)source

Add v ulps of the mantissa's last limb, respectively v B^{\mathit{anchor}}, to the radius of x, for v \ge 0.

The first form depends on the current normalisation of the mantissa: an exact value has no low zero limbs, so its ulp can be much coarser than the scale the caller has in mind. The second form states the scale explicitly and should be preferred.

Guides#

Cite this page

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