Ask Your Question
0

point addition on elliptic curve

asked 8 years ago

Sha gravatar image

I have point (x,y) on my elliptic curve that I want to add with point [51,108]. I have tried the following code:

kX.<X>=FunctionField(k)
R.<Y> = kX[]
kY.<Y> = kX.extension(Y^2-X^3+3267*X-45630)
E=EllipticCurve(kY,[-3267,45630])
Q=E([X,Y])
P1=E([51,108])
W=P1+Q;W

Unfortunately it keep giving error for k

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 8 years ago

FrédéricC gravatar image

You did not define k. Replace k by QQ and it will work.

Preview: (hide)
link

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: 8 years ago

Seen: 595 times

Last updated: Nov 12 '16