1

假设 E:y^2=x^3+Ax+B mod p,我有两个问题?

  1. 如何用 pari-gp 绘制 E 的图形。

  2. 我怎样才能得到 E 上所有点的列表。谢谢大家。

4

1 回答 1

0

To define an Elliptic Curve with SageMath use

E = EllipticCurve(GF(131),[0,1,0,1,0])
print(E)

and outputs

Elliptic Curve defined by y^2 = x^3 + x^2 + x over Finite Field of size 131

In your case ( simplified Weierstrass from)

E = EllipticCurve(GF(p),[A,B])

will be enough.

To plot a curve

E.plot()

is enough

To iterate the points

for T in E.points():
    print(T)

is enough.


Try online on SageMathCell.

enter image description here

And notice the symmetry!

Pari-GP

From a tutorial

a=ffgen(P,’a)
Es = ellinit([a^4,a^6],a);

于 2021-04-07T13:03:32.200 回答