Skip to content

Commit

Permalink
gh-37360: Fix doctest for multiplication_by_m
Browse files Browse the repository at this point in the history
    
The current doctest can create a singular curve, for example with
`random-seed=129979402993014347526756638208394445987`.
    
URL: #37360
Reported by: Sebastian A. Spindler
Reviewer(s): grhkm21
  • Loading branch information
Release Manager committed Feb 21, 2024
2 parents f5983a3 + 3427687 commit 3ffb70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/schemes/elliptic_curves/ell_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2449,7 +2449,7 @@ def multiplication_by_m(self, m, x_only=False):
sage: p = 7
sage: K.<a> = GF(p^2)
sage: E = EllipticCurve(K, [K.random_element(), K.random_element()])
sage: E = EllipticCurve(j=K.random_element())
sage: E.multiplication_by_m(p * 2)[0] == E.multiplication_by_m(p * 2, x_only=True)
True
"""
Expand Down

0 comments on commit 3ffb70a

Please sign in to comment.