wraithx on Sun, 22 Jan 2017 21:52:56 +0100

 Re: Question on elliptic curve group orders...

• To: pari-users@pari.math.u-bordeaux.fr
• Subject: Re: Question on elliptic curve group orders...
• From: wraithx@morpheus.net
• Date: Sun, 22 Jan 2017 14:52:47 -0600
• Authentication-results: cox.net; none
• Delivery-date: Sun, 22 Jan 2017 21:52:56 +0100
• References: <58851011.6090601@morpheus.net> <20170122201759.GB3979@yellowpig>
• User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

```
On 1/22/2017 2:17 PM, Bill Allombert wrote:
```
```On Sun, Jan 22, 2017 at 02:03:29PM -0600, wraithx@morpheus.net wrote:
```
```Hello all,

I have some code that should work in Sage, but I don't have that installed.
I do have pari/gp installed.  Can someone help me convert the following code
so that I can run it in pari/gp?
```
```
FindGroupOrder(p,s)=
{
K = Mod(1,p);
v = K*(4*s);
u = K*(s^2-5);
x = u^3;
b = 4*x*v;
a = (v-u)^3*(3*u+v);
A = a/b-2;
x = x/v^3;
b = x^3 + A*x^2 + x;
E = ellinit([0,b*A,0,b^2,0],K);
factor(ellcard(E))
}

the others are similar except for
x,y = P.xy()
which is
[x,y] = P;

Cheers,
Bill.
```
```
That worked perfectly!  Thanks for your help.

-David C.

```