Drawing a line not segment
I want to draw a line passing through a point P and Q on an elliptic curve.
E = EllipticCurve([0,0,0,4,20])
print(E)
E.plot(xmin=-20, xmax=20, ymin=-20, ymax=20)
plotE = E.plot()
P=E(1,5)
R = - (P + P)
plotE += line([P.xy(),R.xy()],color='red')
Using this only draw a line segment from P to Q. How can I draw a line? I've looked on the doc but did not see an option for this. Any solution?
Please provide complete code that can be copied and pasted in a fresh Sage session.
Currently we are missing the definitions of
E
,P
andR
.@slelievre Thought that was not necessary, here it is.