Ask Your Question
1

x coordinate Of an Elliptic Curve point

asked 2019-01-31 09:04:37 +0100

BishwajitC gravatar image

updated 2019-01-31 17:23:27 +0100

FrédéricC gravatar image

I am defining an Elliptic curve E and then taking a random point P over E. now I want to print the x coordinate of the elliptic curve. How to do that ?

F.<z>=GF(2^11, modulus= conway_polynomial(2,11))
j= F.random_element()
E= EllipticCurve_from_j(j)
P= E.random_point()

Now I want to define w to be the x co-ordinate of P.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2019-01-31 10:51:43 +0100

tmonteil gravatar image

Maybe:

sage: P[0]
edit flag offensive delete link more

Comments

But be careful when the random point is the point at infinity. It seems the OP wants a random point which is not at infinity.

rburing gravatar imagerburing ( 2019-01-31 11:54:03 +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: 2019-01-31 09:04:37 +0100

Seen: 1,493 times

Last updated: Jan 31 '19