Ask Your Question
0

Implementing PARI/GP scripts

asked 2014-06-29 20:01:58 -0600

Blackadder gravatar image

updated 2015-01-14 07:04:53 -0600

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!

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
3

answered 2014-06-29 22:27:00 -0600

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
edit flag offensive delete link more

Comments

Thank you so much!

Blackadder gravatar imageBlackadder ( 2014-06-29 23:57:35 -0600 )edit

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

kcrisman gravatar imagekcrisman ( 2014-06-30 07:58:49 -0600 )edit

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: 2014-06-29 20:01:58 -0600

Seen: 94 times

Last updated: Jun 29 '14