First time here? Check out the FAQ!

Ask Your Question
0

Implementing PARI/GP scripts

asked 10 years ago

Blackadder gravatar image

updated 10 years ago

FrédéricC gravatar image

Hello, I have the following gp script which I would like to use in SAGE.

Script: http://pages.cs.wisc.edu/~yeoh/nt/sat...
Description: http://pari.math.u-bordeaux.fr/archiv...

This script is used to find cardinality of an elliptic curve over binary fields. I've also taken a look at

http://trac.sagemath.org/ticket/11548

but was unable to implement either.

I thought that just copying and pasting the codes would enable me to call the functions used, but I was wrong. I'm using SAGE on VirtualBox on Windows. Any help will be appreciated!

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 10 years ago

Peter Luschny gravatar image
def ecpc():
    gp.read(get_remote_file('http://pages.cs.wisc.edu/~yeoh/nt/satoh-fgh.gp'))
    return gp('ecpc(x^11+x^2+1, Mod(Mod(1,2)*(x^4+x^2+x), x^11+x^2+1))') 

ecpc()

Attempting to load remote file:
http://pages.cs.wisc.edu/~yeoh/nt/satoh-fgh.gp
Loading: [..]
2080
Preview: (hide)
link

Comments

Thank you so much!

Blackadder gravatar imageBlackadder ( 10 years ago )

If it's correct, be sure to accept the answer!

kcrisman gravatar imagekcrisman ( 10 years ago )

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

Seen: 461 times

Last updated: Jun 30 '14