mirror of
https://github.com/vale981/arb
synced 2025-03-04 08:51:40 -05:00
Add acb_add_error_arb
Also add acb_add_error_arf to the documentation.
This commit is contained in:
parent
15380eedb6
commit
2acfe29830
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);
|
||||
}
|
||||
|
||||
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);
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue