Add acb_add_error_arb

Also add acb_add_error_arf to the documentation.
This commit is contained in:
Albin Ahlbäck 2021-09-21 14:50:37 +02:00
parent 15380eedb6
commit 2acfe29830
2 changed files with 11 additions and 0 deletions

7
acb.h
View file

@ -331,6 +331,13 @@ acb_add_error_mag(acb_t x, const mag_t err)
arb_add_error_mag(acb_imagref(x), err);
}
ACB_INLINE void
acb_add_error_arb(acb_t x, const arb_t err)
{
arb_add_error(acb_realref(x), err);
arb_add_error(acb_imagref(x), err);
}
void acb_get_mag(mag_t z, const acb_t x);
void acb_get_mag_lower(mag_t z, const acb_t x);

View file

@ -139,8 +139,12 @@ Basic manipulation
Swaps *z* and *x* efficiently.
.. function:: void acb_add_error_arf(acb_t x, const arf_t err)
.. function:: void acb_add_error_mag(acb_t x, const mag_t err)
.. function:: void acb_add_error_arb(acb_t x, const arb_t err)
Adds *err* to the error bounds of both the real and imaginary
parts of *x*, modifying *x* in-place.