Skip to content

Commit 98b2014

Browse files
committed
adjust doctests
1 parent 488f0be commit 98b2014

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sage/schemes/elliptic_curves/hom_velusqrt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def _point_outside_subgroup(P):
527527
sage: P = E(4, 35)
528528
sage: Q = _point_outside_subgroup(P); Q # random
529529
(14 : 11 : 1)
530-
sage: Q.curve()(P).discrete_log(Q)
530+
sage: Q.log(P)
531531
Traceback (most recent call last):
532532
...
533533
ValueError: ECDLog problem has no solution (...)
@@ -539,7 +539,7 @@ def _point_outside_subgroup(P):
539539
True
540540
sage: Q = _point_outside_subgroup(P); Q # random
541541
(35*z2 + 7 : 24*z2 + 7 : 1)
542-
sage: Q.curve()(P).discrete_log(Q)
542+
sage: Q.log(Q.curve()(P))
543543
Traceback (most recent call last):
544544
...
545545
ValueError: ECDLog problem has no solution (...)
@@ -554,7 +554,7 @@ def _point_outside_subgroup(P):
554554
(18*z2 + 46 : 58*z2 + 61 : 1)
555555
sage: Q in E
556556
True
557-
sage: P.discrete_log(Q)
557+
sage: Q.log(P)
558558
Traceback (most recent call last):
559559
...
560560
ValueError: ECDLog problem has no solution (...)

0 commit comments

Comments
 (0)