Skip to content

Commit 9a165cd

Browse files
Merge pull request #144 from edgarcosta/rel_one_accuracy_bits
add rel_one_accuracy_bits() to a{r,c}
2 parents 625646a + 2fe23ed commit 9a165cd

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/flint/flintlib/arb.pxd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ cdef extern from "flint/arb.h":
7979
void arb_nonnegative_part(arb_t u, const arb_t x)
8080
slong arb_rel_error_bits(const arb_t x)
8181
slong arb_rel_accuracy_bits(const arb_t x)
82+
slong arb_rel_one_accuracy_bits(const arb_t x)
8283
long arb_bits(const arb_t x)
8384
void arb_randtest_exact(arb_t x, flint_rand_t state, long prec, long mag_bits)
8485
void arb_randtest_wide(arb_t x, flint_rand_t state, long prec, long mag_bits)

src/flint/types/acb.pyx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,6 +1400,9 @@ cdef class acb(flint_scalar):
14001400
def rel_accuracy_bits(self):
14011401
return acb_rel_accuracy_bits(self.val)
14021402

1403+
def rel_one_accuracy_bits(self):
1404+
return acb_rel_one_accuracy_bits(self.val)
1405+
14031406
def ei(s):
14041407
r"""
14051408
Exponential integral `\operatorname{Ei}(s)`.

src/flint/types/arb.pyx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2413,6 +2413,9 @@ cdef class arb(flint_scalar):
24132413
def rel_accuracy_bits(self):
24142414
return arb_rel_accuracy_bits(self.val)
24152415

2416+
def rel_one_accuracy_bits(self):
2417+
return arb_rel_one_accuracy_bits(self.val)
2418+
24162419
def lambertw(s, int branch=0):
24172420
r"""
24182421
Lambert *W* function, `W_k(s)`. Either the principal

0 commit comments

Comments
 (0)