ecplot

92 days ago by voloch

E = EllipticCurve(RDF, [0,0,0,-1,4]) print E @interact def _(x=slider(-2,4,0.1,1)): x1 = E.lift_x(x) x2 = E.lift_x(-0.5) x3 = x1+x2 print 'point at x=%.2f:'%x, x1 p1 = E.plot() p2 = point2d(x1.xy(), color='red', size=30) p3 = point2d(x2.xy(), color='green', size=30) p4 = point2d(x3.xy(), color='black', size=30) show(p1+p2+p3+p4) 
       

Click to the left again to hide and once more to show the dynamic interactive window

 
       
 
       
@interact def _(x=slider(-3,2,0.1,1)): E = EllipticCurve(RDF, [0,0,0,x,0.1]) print E p1 = E.plot() show(p1) 
       

Click to the left again to hide and once more to show the dynamic interactive window