File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1404,6 +1404,11 @@ cdef class acb(flint_scalar):
1404
1404
return acb_rel_one_accuracy_bits(self .val)
1405
1405
1406
1406
def bits (self ):
1407
+ r """ Returns maximum of :meth:`. arb. bits` called on real and imaginary part.
1408
+
1409
+ >>> acb( "2047/2048") . bits( )
1410
+ 11
1411
+ """
1407
1412
return acb_bits(self .val)
1408
1413
1409
1414
def ei (s ):
Original file line number Diff line number Diff line change @@ -809,10 +809,10 @@ cdef class arb(flint_scalar):
809
809
arb_log1p((< arb> u).val, (< arb> s).val, getprec())
810
810
return u
811
811
812
- def log_base_ui (s , ulong b ):
812
+ def log_base (s , ulong b ):
813
813
r """ Returns `\l og_b( s) `, computed exactly when possible.
814
814
815
- >>> arb( 2048) . log_base_ui ( 2)
815
+ >>> arb( 2048) . log_base ( 2)
816
816
11. 0000000000000
817
817
"""
818
818
u = arb.__new__ (arb)
@@ -2427,6 +2427,11 @@ cdef class arb(flint_scalar):
2427
2427
return arb_rel_one_accuracy_bits(self .val)
2428
2428
2429
2429
def bits (self ):
2430
+ r """ Returns number of bits needed to represent absolute value of mantissa of the midpoint; returns 0 if midpoint is special value.
2431
+
2432
+ >>> arb( "2047/2048") . bits( )
2433
+ 11
2434
+ """
2430
2435
return arb_bits(self .val)
2431
2436
2432
2437
def lambertw (s , int branch = 0 ):
You can’t perform that action at this time.
0 commit comments