Skip to content

Commit 66def0d

Browse files
committed
fix private methods used in doctests
1 parent fddd81b commit 66def0d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/sage/libs/lcalc/lcalc_Lfunction.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ cdef class Lfunction:
251251
"""
252252
return self._compute_rank()
253253

254-
def __N(self, T):
254+
def _N(self, T):
255255
"""
256256
Compute the number of zeroes upto height `T` using the formula for
257257
`N(T)` with the error of `S(T)`. Please do not use this. It is only
@@ -262,7 +262,7 @@ cdef class Lfunction:
262262
sage: from sage.libs.lcalc.lcalc_Lfunction import *
263263
sage: chi = DirichletGroup(5)[2] #This is a quadratic character
264264
sage: L=Lfunction_from_character(chi, type="complex")
265-
sage: L.__N(10) # abs tol 1e-8
265+
sage: L._N(10) # abs tol 1e-8
266266
4.0
267267
"""
268268
cdef RealNumber real_T=RRR(T)

src/sage/rings/real_mpfr.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4300,7 +4300,7 @@ cdef class RealNumber(sage.structure.element.RingElement):
43004300
if (<RealField_class>self._parent)._prec > 10*SIG_PREC_THRESHOLD: sig_off()
43014301
return x
43024302

4303-
def __pow(self, RealNumber exponent):
4303+
def _pow(self, RealNumber exponent):
43044304
"""
43054305
Compute ``self`` raised to the power of exponent, rounded in the
43064306
direction specified by the parent of ``self``.
@@ -4309,7 +4309,7 @@ cdef class RealNumber(sage.structure.element.RingElement):
43094309
43104310
sage: R = RealField(30)
43114311
sage: a = R('1.23456')
4312-
sage: a.__pow(20.0)
4312+
sage: a._pow(20.0)
43134313
67.646297
43144314
"""
43154315
cdef RealNumber x

0 commit comments

Comments
 (0)