Skip to content

Commit

Permalink
sage --fiximports src/sage/schemes/elliptic_curves/cm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Apr 1, 2023
1 parent 716be52 commit 1507209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/schemes/elliptic_curves/cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def is_HCP(f, check_monic_irreducible=True):
# Guarantees 4*p > |D| for fundamental D under GRH
p = pmin-1
n = 0
from sage.arith.all import next_prime
from sage.arith.misc import next_prime
while True:
p = next_prime(p)
n += 1
Expand Down Expand Up @@ -314,7 +314,7 @@ def OrderClassNumber(D0,h0,f):
return h0
ps = f.prime_divisors()
from sage.misc.misc_c import prod
from sage.arith.all import kronecker_symbol
from sage.arith.misc import kronecker as kronecker_symbol
n = (f // prod(ps)) * prod(p-kronecker_symbol(D0,p) for p in ps)
if D0 == -3:
#assert h0 == 1 and n%3==0
Expand Down

0 comments on commit 1507209

Please sign in to comment.