假设 E:y^2=x^3+Ax+B mod p,我有两个问题?
如何用 pari-gp 绘制 E 的图形。
我怎样才能得到 E 上所有点的列表。谢谢大家。
假设 E:y^2=x^3+Ax+B mod p,我有两个问题?
如何用 pari-gp 绘制 E 的图形。
我怎样才能得到 E 上所有点的列表。谢谢大家。
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.
And notice the symmetry!
From a tutorial
a=ffgen(P,’a)
Es = ellinit([a^4,a^6],a);