such that the cubic
Exercise: Make up several ``random'' elliptic curves over
various random
's in SAGE (so not related to the
congruent number problem!). List their points. Plot them. Do a
little arithmetic with them. Here is some code to get you
started.
Finding a random prime
:
sage: next_prime(randrange(1000)) 137Making up a random curve:
sage: p = 137 sage: F = FiniteField(p) sage: E = EllipticCurve(F, [F.random_element(), F.random_element()]) sage: print E Elliptic Curve defined by y^2 = x^3 + 45*x + 43 over Finite Field of size 137List all points:
sage: E.points() [(0 : 1 : 0), (51 : 90 : 1), (57 : 92 : 1), (90 : 34 : 1), ...Make a plot:
sage: show(plot(E, hue=.9))Do some arithmetic:
sage: P = E.points()[1] # first point listed above sage: P (51 : 90 : 1) sage: P + P (57 : 92 : 1) sage: 10*P (131 : 105 : 1) sage: 9393*P (129 : 26 : 1)