Ask Your Question
0

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

asked 9 years ago

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'
Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 8 years ago

Vova gravatar image

updated 8 years ago

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

Preview: (hide)
link

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: 9 years ago

Seen: 544 times

Last updated: Jun 28 '16