Ask Your Question
1

x coordinate Of an Elliptic Curve point

asked 2019-01-31 02:04:37 -0500

BishwajitC gravatar image

updated 2019-01-31 10:23:27 -0500

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 03:51:43 -0500

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 04:54:03 -0500 )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 02:04:37 -0500

Seen: 48 times

Last updated: Jan 31