Ticket #3720: sage-3720.patch

File sage-3720.patch, 1.4 KB (added by was, 13 years ago)
  • sage/schemes/elliptic_curves/lseries_ell.py

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1216899116 -7200
    # Node ID 366912c69770ff1e1c218ec3428c5cf405e81909
    # Parent  13c41a8669283c4d57600f7afcc9c09c556dd180
    trac #3720 -- stupid bug in elliptic curves caused by refactoring
    
    diff -r 13c41a866928 -r 366912c69770 sage/schemes/elliptic_curves/lseries_ell.py
    a b Complex Elliptic Curve L-series 
    22Complex Elliptic Curve L-series
    33
    44"""
     5
     6from sage.misc.misc import verbose
    57
    68from sage.structure.sage_object import SageObject
    79from sage.rings.all import (
    class Lseries_ell(SageObject): 
    619621            sage: E.lseries().L_ratio()
    620622            2
    621623
     624        The sha_an function calls L_ratio in some cases:
     625            sage: EllipticCurve([0,0,0,-193^2,0]).sha().an()
     626            4
     627
    622628        WARNING: It's conceivable that machine floats are not large
    623629        enough precision for the computation; if this could be the
    624630        case a RuntimeError is raised.  The curve's real period would
    class Lseries_ell(SageObject): 
    696702                self.__lratio = quo / self.__E.real_components()
    697703                return self.__lratio
    698704            k += sqrtN
    699             misc.verbose("Increasing precision to %s terms."%k)
     705            verbose("Increasing precision to %s terms."%k)