Ask Your Question

x coordinate Of an Elliptic Curve point

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

BishwajitC gravatar image

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

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

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

tmonteil gravatar image


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


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 +0200 )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


Asked: 2019-01-31 09:04:37 +0200

Seen: 1,348 times

Last updated: Jan 31 '19