Ask Your Question
0

Error with .cardinality(algorithm='sae') for elliptic curve

asked 2015-05-08 17:11:39 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Hello please i have a problem. I have already defined an elliptic curve over a ring Zn and i want to compute its cardinality but i can not use .cardinality(algorithm='sae'). Thank you.

Here is the programme that i want to implement.

def cardin(n,A,B)
      Z = Zmod(n) # n is not a prime then Z is a ring
      E = EllipticCurve(Z,(A,B))
      return E.cardinality(algorithm='sae')  "sae=Schoof Atkin"

TypeError: cardinality() got an unexpected keyword argument 'algorithm'
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-06-28 18:13:55 +0100

Vova gravatar image

updated 2016-06-28 18:14:26 +0100

It should be 'sea' instead of 'sae'. Also, you would get the same result if you replace the line by return E.cardinality_pari()

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-05-08 17:11:39 +0100

Seen: 531 times

Last updated: Jun 28 '16