Merge pull request #377 from albinahlback/acb_add_error_arb

Add acb_add_error_arb
This commit is contained in:
Fredrik Johansson 2021-09-22 11:04:44 +02:00 committed by GitHub
commit 35cb5c07e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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.