Changeset 2834:4eed73fe6f31


Ignore:
Timestamp:
02/07/07 20:48:06 (6 years ago)
Author:
William Stein <wstein@…>
Branch:
default
Message:

add examples.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/schemes/elliptic_curves/ell_rational_field.py

    r2822 r2834  
    31973197            misc.verbose("index = %s"%ind) 
    31983198            # Compute upper bound on square root of index. 
    3199             if ind.length() < 1: 
     3199            if ind.absolute_diameter() < 1: 
    32003200                t, i = ind.is_int() 
    32013201                if t:   # unique integer in interval, so we've found exact index squared. 
     
    32243224                           ignore_nonsurj_hypothesis=False): 
    32253225        """ 
    3226         Given a fundamental discriminant D (=-3,-4) that satisfies the 
     3226        Given a fundamental discriminant D (!= -3,-4) that satisfies the 
    32273227        Heegner hypothesis, return a list of primes so that 
    32283228        Kolyvagin's theorem (as in Gross's paper) implies that any 
     
    32773277                correct up to addition or a real number with absolute 
    32783278                value less than $10^{-10}$. 
     3279 
     3280        EXAMPLES: 
     3281            sage: E = EllipticCurve('37a') 
     3282            sage: E.shabound_kolyvagin() 
     3283            ([2], 1) 
     3284            sage: E = EllipticCurve('141a') 
     3285            sage: E.sha_an() 
     3286            1 
     3287            sage: E.shabound_kolyvagin() 
     3288            ([2, 7], 49) 
     3289 
     3290        We get no information the curve has rank $2$. 
     3291            sage: E = EllipticCurve('389a') 
     3292            sage: E.shabound_kolyvagin() 
     3293            (0, 0) 
     3294            sage: E = EllipticCurve('681b') 
     3295            sage: E.sha_an() 
     3296            9 
     3297            sage: E.shabound_kolyvagin() 
     3298            ([2, 3], 9)         
     3299         
    32793300        """ 
    32803301        if self.has_cm(): 
     
    33413362            if t: 
    33423363                break 
    3343             elif I.length() < 1: 
     3364            elif I.absolute_diameter() < 1: 
    33443365                raise RuntimeError, "Problem in shabound_kolyvagin; square of index is not an integer -- D=%s, I=%s."%(D,I) 
    33453366            misc.verbose("Doubling bounds") 
Note: See TracChangeset for help on using the changeset viewer.