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

Commit

Permalink
first step
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Chapoton committed Aug 1, 2016
1 parent c4f3c93 commit 09b62d5
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -1132,7 +1132,10 @@ def cardinality_exhaustive(self, extension_degree=1, algorithm=None):
# begin with points at infinity (on the smooth model)
if g == 1:
# elliptic curves always have one smooth point at infinity
a += 1
if K.degree() % 2:
a += 1
elif K.characteristic() != 2:
a += 1 + legendre_symbol(a, K.cardinality())
else:
# g > 1
# solve y^2 + y*h[g+1] == f[2*g+2], i.e., y^2 + r*y - s == 0
Expand Down

0 comments on commit 09b62d5

Please sign in to comment.