mirror of
https://github.com/vale981/arb
synced 2025-03-05 09:21:38 -05:00
Merge pull request #377 from albinahlback/acb_add_error_arb
Add acb_add_error_arb
This commit is contained in:
commit
35cb5c07e9
2 changed files with 11 additions and 0 deletions
7
acb.h
7
acb.h
|
@ -331,6 +331,13 @@ acb_add_error_mag(acb_t x, const mag_t err)
|
||||||
arb_add_error_mag(acb_imagref(x), 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(mag_t z, const acb_t x);
|
||||||
|
|
||||||
void acb_get_mag_lower(mag_t z, const acb_t x);
|
void acb_get_mag_lower(mag_t z, const acb_t x);
|
||||||
|
|
|
@ -139,8 +139,12 @@ Basic manipulation
|
||||||
|
|
||||||
Swaps *z* and *x* efficiently.
|
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_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
|
Adds *err* to the error bounds of both the real and imaginary
|
||||||
parts of *x*, modifying *x* in-place.
|
parts of *x*, modifying *x* in-place.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue