Skip to content

Commit e45f485

Browse files
committed
add arb_bits, acb_bits
1 parent 430b8e5 commit e45f485

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/flint/types/acb.pyx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,9 @@ cdef class acb(flint_scalar):
14031403
def rel_one_accuracy_bits(self):
14041404
return acb_rel_one_accuracy_bits(self.val)
14051405

1406+
def bits(self):
1407+
return acb_bits(self.val)
1408+
14061409
def ei(s):
14071410
r"""
14081411
Exponential integral `\operatorname{Ei}(s)`.

src/flint/types/arb.pyx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2416,6 +2416,9 @@ cdef class arb(flint_scalar):
24162416
def rel_one_accuracy_bits(self):
24172417
return arb_rel_one_accuracy_bits(self.val)
24182418

2419+
def bits(self):
2420+
return arb_bits(self.val)
2421+
24192422
def lambertw(s, int branch=0):
24202423
r"""
24212424
Lambert *W* function, `W_k(s)`. Either the principal

0 commit comments

Comments
 (0)