Ask Your Question
0

Implementing PARI/GP scripts

asked 2014-06-30 03:01:58 +0100

Blackadder gravatar image

updated 2015-01-14 14:04:53 +0100

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-30 05:27:00 +0100

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-30 06:57:35 +0100 )edit

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

kcrisman gravatar imagekcrisman ( 2014-06-30 14:58:49 +0100 )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-30 03:01:58 +0100

Seen: 457 times

Last updated: Jun 30 '14