Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
attempt to fix 32269
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjbest committed Jul 23, 2021
1 parent f5efe48 commit 96561b3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/sage/schemes/elliptic_curves/isogeny_small_degree.py
Expand Up @@ -2333,6 +2333,13 @@ def isogenies_prime_degree(E, l, minimal_models=True):
[]
sage: E.isogenies_prime_degree(73) # slower (2s)
[]
Test that :trac:`32269` is fixed.
sage: K = QuadraticField(-11)
sage: E = EllipticCurve(K, [0,1,0,-117,-541])
sage: E.isogenies_prime_degree(37)
"""
if not l.is_prime():
raise ValueError("%s is not prime."%l)
Expand All @@ -2352,7 +2359,7 @@ def isogenies_prime_degree(E, l, minimal_models=True):
return isogenies_prime_degree_genus_plus_0(E,l, minimal_models=minimal_models)

j = E.j_invariant()
if j in QQ:
if j in QQ and E.base_field() is QQ:
j = QQ(j)
if j in sporadic_j:
return isogenies_sporadic_Q(E,l, minimal_models=minimal_models)
Expand Down

0 comments on commit 96561b3

Please sign in to comment.