From 2fe23edc4ce996d7bfec6c50a132429311b15b26 Mon Sep 17 00:00:00 2001 From: Edgar Costa Date: Fri, 14 Jun 2024 21:55:46 -0400 Subject: [PATCH] add rel_one_accuracy_bits() to a{r,c} --- src/flint/flintlib/arb.pxd | 1 + src/flint/types/acb.pyx | 3 +++ src/flint/types/arb.pyx | 3 +++ 3 files changed, 7 insertions(+) diff --git a/src/flint/flintlib/arb.pxd b/src/flint/flintlib/arb.pxd index ab7d0be4..d9e54b69 100644 --- a/src/flint/flintlib/arb.pxd +++ b/src/flint/flintlib/arb.pxd @@ -79,6 +79,7 @@ cdef extern from "flint/arb.h": void arb_nonnegative_part(arb_t u, const arb_t x) slong arb_rel_error_bits(const arb_t x) slong arb_rel_accuracy_bits(const arb_t x) + slong arb_rel_one_accuracy_bits(const arb_t x) long arb_bits(const arb_t x) void arb_randtest_exact(arb_t x, flint_rand_t state, long prec, long mag_bits) void arb_randtest_wide(arb_t x, flint_rand_t state, long prec, long mag_bits) diff --git a/src/flint/types/acb.pyx b/src/flint/types/acb.pyx index 961da564..074c210a 100644 --- a/src/flint/types/acb.pyx +++ b/src/flint/types/acb.pyx @@ -1400,6 +1400,9 @@ cdef class acb(flint_scalar): def rel_accuracy_bits(self): return acb_rel_accuracy_bits(self.val) + def rel_one_accuracy_bits(self): + return acb_rel_one_accuracy_bits(self.val) + def ei(s): r""" Exponential integral `\operatorname{Ei}(s)`. diff --git a/src/flint/types/arb.pyx b/src/flint/types/arb.pyx index 22d0cc7b..50274775 100644 --- a/src/flint/types/arb.pyx +++ b/src/flint/types/arb.pyx @@ -2413,6 +2413,9 @@ cdef class arb(flint_scalar): def rel_accuracy_bits(self): return arb_rel_accuracy_bits(self.val) + def rel_one_accuracy_bits(self): + return arb_rel_one_accuracy_bits(self.val) + def lambertw(s, int branch=0): r""" Lambert *W* function, `W_k(s)`. Either the principal