Skip to content

Commit

Permalink
Merge pull request #144 from edgarcosta/rel_one_accuracy_bits
Browse files Browse the repository at this point in the history
add rel_one_accuracy_bits() to a{r,c}
  • Loading branch information
oscarbenjamin authored Jun 15, 2024
2 parents 625646a + 2fe23ed commit 9a165cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/flint/flintlib/arb.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions src/flint/types/acb.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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)`.
Expand Down
3 changes: 3 additions & 0 deletions src/flint/types/arb.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a165cd

Please sign in to comment.