# 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 Lseries 
2  2  Complex Elliptic Curve Lseries 
3  3  
4  4  """ 
 5  
 6  from sage.misc.misc import verbose 
5  7  
6  8  from sage.structure.sage_object import SageObject 
7  9  from sage.rings.all import ( 
… 
… 
class Lseries_ell(SageObject): 
619  621  sage: E.lseries().L_ratio() 
620  622  2 
621  623  
 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  
622  628  WARNING: It's conceivable that machine floats are not large 
623  629  enough precision for the computation; if this could be the 
624  630  case a RuntimeError is raised. The curve's real period would 
… 
… 
class Lseries_ell(SageObject): 
696  702  self.__lratio = quo / self.__E.real_components() 
697  703  return self.__lratio 
698  704  k += sqrtN 
699   misc.verbose("Increasing precision to %s terms."%k) 
 705  verbose("Increasing precision to %s terms."%k) 