Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/sage/schemes/elliptic_curves/ell_number_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@
sage: K.<a> = QuadraticField(4569)
sage: j = 46969655/32768
sage: E = EllipticCurve(j=K(j))
sage: C = E.isogeny_class() # long time (9.5s)

Check warning on line 800 in src/sage/schemes/elliptic_curves/ell_number_field.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, new)

Warning: slow doctest:

slow doctest:: Test ran for 44.95s cpu, 46.05s wall Check ran for 0.00s cpu, 0.00s wall
"""
K = self.base_field()
r1, r2 = K.signature()
Expand Down Expand Up @@ -2281,6 +2281,21 @@
else:
raise ValueError('There is insufficient data to determine the rank - 2-descent gave lower bound %s and upper bound %s' % (lower, upper))

def analytic_rank(self):
r"""
Return an integer that is *probably* the analytic rank of this
elliptic curve.

EXAMPLES::

sage: K.<s> = QuadraticField(229)
sage: EllipticCurve("389a1").change_ring(K).analytic_rank() # long time
3
sage: len(EllipticCurve("389a1").change_ring(K).gens()) # long time
3
"""
return ZZ(self.integral_model().pari_curve().lfuncreate().lfunorderzero())

def gens(self, **kwds):
r"""
Return some points of infinite order on this elliptic curve.
Expand Down
Loading