Skip to content

Commit 488f0be

Browse files
committed
remove deprecated (legacy) .discrete_log() method for elliptic-curve points
1 parent 4e2319b commit 488f0be

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

src/sage/schemes/elliptic_curves/ell_point.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4521,32 +4521,6 @@ def log(self, base):
45214521

45224522
return ZZ(pari.elllog(self.curve(), self, base, n))
45234523

4524-
def discrete_log(self, Q):
4525-
r"""
4526-
Legacy version of :meth:`log` with its arguments swapped.
4527-
4528-
Note that this method uses the opposite argument ordering
4529-
of all other logarithm methods in Sage; see :issue:`37150`.
4530-
4531-
EXAMPLES::
4532-
4533-
sage: E = EllipticCurve(j=GF(101)(5))
4534-
sage: P, = E.gens()
4535-
sage: (2*P).log(P)
4536-
2
4537-
sage: (2*P).discrete_log(P)
4538-
doctest:warning ...
4539-
DeprecationWarning: The syntax P.discrete_log(Q) ... Please update your code. ...
4540-
45
4541-
sage: P.discrete_log(2*P)
4542-
2
4543-
"""
4544-
from sage.misc.superseded import deprecation
4545-
deprecation(37150, 'The syntax P.discrete_log(Q) is being replaced by '
4546-
'Q.log(P) to make the argument ordering of logarithm'
4547-
' methods in Sage uniform. Please update your code.')
4548-
return Q.log(self)
4549-
45504524
def padic_elliptic_logarithm(self, Q, p):
45514525
r"""
45524526
Return the discrete logarithm of `Q` to base `P` = ``self``,

0 commit comments

Comments
 (0)