@@ -158,7 +158,7 @@ def base_extend(self, R):
158158 [(52 : 111 : 1)]
159159 sage: EK = E.base_extend(K)
160160 sage: EK.gens()
161- [( 52 : 111 : 1)]
161+ (( 52 : 111 : 1),)
162162 """
163163 E = super ().base_extend (R )
164164 if isinstance (E , EllipticCurve_number_field ):
@@ -2328,21 +2328,21 @@ def gens(self, **kwds):
23282328 sage: K.<a> = NumberField(x^2 + 23, 'a')
23292329 sage: E = EllipticCurve(K,[0,0,0,101,0])
23302330 sage: E.gens()
2331- [ (23831509/8669448*a - 2867471/8669448 : 76507317707/18049790736*a - 424166479633/18049790736 : 1),
2331+ ( (23831509/8669448*a - 2867471/8669448 : 76507317707/18049790736*a - 424166479633/18049790736 : 1),
23322332 (-2031032029/969232392*a + 58813561/969232392 : -15575984630401/21336681877488*a + 451041199309/21336681877488 : 1),
2333- (-186948623/4656964 : 549438861195/10049728312*a : 1)]
2333+ (-186948623/4656964 : 549438861195/10049728312*a : 1))
23342334
23352335 It can happen that no points are found if the height bounds
23362336 used in the search are too small (see :issue:`10745`)::
23372337
23382338 sage: K.<t> = NumberField(x^4 + x^2 - 7)
23392339 sage: E = EllipticCurve(K, [1, 0, 5*t^2 + 16, 0, 0])
23402340 sage: E.gens(lim1=1, lim3=1)
2341- []
2341+ ()
23422342 sage: E.rank()
23432343 1
23442344 sage: gg=E.gens(lim3=13); gg # long time (about 4s)
2345- [( ... : 1)]
2345+ (( ... : 1),)
23462346
23472347 Check that the point found has infinite order, and that it is on the curve::
23482348
@@ -2356,7 +2356,7 @@ def gens(self, **kwds):
23562356 sage: K.<t> = NumberField(x^2 - 17)
23572357 sage: E = EllipticCurve(K, [-4, 0])
23582358 sage: E.gens()
2359- [( -1/2*t + 1/2 : -1/2*t + 1/2 : 1), (-t + 3 : -2*t + 10 : 1)]
2359+ (( -1/2*t + 1/2 : -1/2*t + 1/2 : 1), (-t + 3 : -2*t + 10 : 1))
23602360 sage: E.rank()
23612361 2
23622362
@@ -2368,7 +2368,7 @@ def gens(self, **kwds):
23682368 sage: EK.rank()
23692369 0
23702370 sage: EK.gens()
2371- []
2371+ ()
23722372
23732373 IMPLEMENTATION:
23742374
@@ -2378,10 +2378,10 @@ def gens(self, **kwds):
23782378 PARI/GP scripts from http://www.math.unicaen.fr/~simon/.
23792379 """
23802380 try :
2381- return self .gens_quadratic (** kwds )
2381+ return tuple ( self .gens_quadratic (** kwds ) )
23822382 except ValueError :
23832383 self .simon_two_descent (** kwds )
2384- return self ._known_points
2384+ return tuple ( self ._known_points )
23852385
23862386 def period_lattice (self , embedding ):
23872387 r"""
0 commit comments