Skip to content

Commit 4c4ce93

Browse files
committed
0 == 1728 in characteristics 2 and 3
1 parent 6eaaf7e commit 4c4ce93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/schemes/elliptic_curves/weierstrass_morphism.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ def _isomorphisms(E, F):
333333
....: 2: j not in (0, 1728),
334334
....: 4: p >= 5 and j == 1728,
335335
....: 6: p >= 5 and j == 0,
336-
....: 12: p == 3 and j in (0, 1728),
337-
....: 24: p == 2 and j in (0, 1728),
336+
....: 12: p == 3 and j == 0, # note 1728 == 0
337+
....: 24: p == 2 and j == 0, # note 1728 == 0
338338
....: }[len(Aut)]
339339
True
340340
sage: u,r,s,t = (F^4).random_element()

0 commit comments

Comments
 (0)