Skip to content

Commit c7654e8

Browse files
committed
rename the gen, and do basic tests on the found generator
1 parent 238f4de commit c7654e8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/sage/schemes/elliptic_curves/ell_number_field.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2290,15 +2290,22 @@ def gens(self, **kwds):
22902290
It can happen that no points are found if the height bounds
22912291
used in the search are too small (see :trac:`10745`)::
22922292
2293-
sage: K.<y> = NumberField(x^4 + x^2 - 7)
2294-
sage: E = EllipticCurve(K, [1, 0, 5*y^2 + 16, 0, 0])
2293+
sage: K.<t> = NumberField(x^4 + x^2 - 7)
2294+
sage: E = EllipticCurve(K, [1, 0, 5*t^2 + 16, 0, 0])
22952295
sage: E.gens(lim1=1, lim3=1)
22962296
[]
22972297
sage: E.rank()
22982298
1
2299-
sage: E.gens(lim3=13) # long time (about 4s)
2299+
sage: gg=E.gens(lim3=13); gg # long time (about 4s)
23002300
[(... : 1)]
23012301
2302+
Check that the the point found has infinite order, and that it is on the curve::
2303+
2304+
sage: P=gg[0]; P.order()
2305+
+Infinity
2306+
sage: E.defining_polynomial()(*P)
2307+
0
2308+
23022309
Here is a curve of rank 2::
23032310
23042311
sage: K.<t> = NumberField(x^2-17)

0 commit comments

Comments
 (0)