File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ cdef extern from "flint/arb.h":
183
183
void arb_log_ui(arb_t z, ulong x, long prec)
184
184
void arb_log_fmpz(arb_t z, const fmpz_t x, long prec)
185
185
void arb_log1p(arb_t z, const arb_t x, long prec)
186
+ void arb_log_base_ui(arb_t z, const arb_t x, ulong b, long prec)
186
187
void arb_exp(arb_t z, const arb_t x, long prec)
187
188
void arb_expm1(arb_t z, const arb_t x, long prec)
188
189
void arb_sin(arb_t s, const arb_t x, long prec)
Original file line number Diff line number Diff line change @@ -809,6 +809,16 @@ 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 ):
813
+ r """ Returns `\l og_b( s) `, computed exactly when possible.
814
+
815
+ >>> arb( 2048) . log_base_ui( 2)
816
+ 11. 0000000000000
817
+ """
818
+ u = arb.__new__ (arb)
819
+ arb_log_base_ui((< arb> u).val, (< arb> s).val, b, getprec())
820
+ return u
821
+
812
822
def sin (s ):
813
823
r """
814
824
Sine function `\s in( s) `.
You can’t perform that action at this time.
0 commit comments