Ask Your Question

Nadori's profile - activity

2023-09-13 05:38:48 +0200 received badge  Famous Question (source)
2022-04-06 09:34:47 +0200 received badge  Notable Question (source)
2016-02-06 19:37:44 +0200 received badge  Famous Question (source)
2015-01-13 21:02:34 +0200 received badge  Popular Question (source)
2014-10-16 20:12:53 +0200 received badge  Notable Question (source)
2013-06-25 05:05:35 +0200 received badge  Popular Question (source)
2012-03-19 07:15:35 +0200 received badge  Student (source)
2012-03-19 05:10:11 +0200 received badge  Scholar (source)
2012-03-19 05:10:11 +0200 marked best answer How to load and use a PARI/GP script in Sage notebook?

Do

  gp.read(get_remote_file('http://math.stanford.edu/~stange/scripts/tate_via_nets.gp'))

as illustrated here and in SageMathCloud.

2012-03-19 05:10:07 +0200 received badge  Supporter (source)
2012-03-17 10:22:50 +0200 asked a question How to correctly load and use a pari/gp script in sage notebook

Take for example the script http://math.stanford.edu/~stange/scri... What I do is copying the script to a txt file and name it tatepairing.gp. Then I go to my sage notebook and choose above the option 'gp'. In the first block I write "\r filename" where filename is the whole path of the file tatepairing.gp (so C:....\tatepairing.gp) and evaluate it. If you go to the link you see a function tate_pairing_alg with input an elliptic curve, two points on it and an integer. Therefore I define (over $\mathbb{F}_5$) e = ellinit([0,0,0,4,0]*Mod(1,5)) P1= [2,4] P2=[1,0]

Now I do tate_pairing_alg(e, P1, P2, 4), the answer is

* at top-level: tatepairing.tate_pairing_alg(e,P ^-------------------- ** not a function in function call

If you see me doing things wrongly please let me know it :-) Thanks

2012-03-17 10:21:26 +0200 asked a question How to load and use a PARI/GP script in Sage notebook?

Take for example the script http://math.stanford.edu/~stange/scri... What I do is copying the script to a txt file and name it tatepairing.gp. Then I go to my sage notebook and choose above the option 'gp'. In the first block I write "\r filename" where filename is the whole path of the file tatepairing.gp (so C:....\tatepairing.gp) and evaluate it. If you go to the link you see a function tate_pairing_alg with input an elliptic curve, two points on it and an integer. Therefore I define (over $\mathbb{F}_5$) e = ellinit([0,0,0,4,0]*Mod(1,5)) P1= [2,4] P2=[1,0]

Now I do tate_pairing_alg(e, P1, P2, 4), the answer is

* at top-level: tatepairing.tate_pairing_alg(e,P ^-------------------- ** not a function in function call

If you see me doing things wrongly please let me know it :-) Thanks