Ticket #3111: sage-3111-extra3.patch

File sage-3111-extra3.patch, 1022 bytes (added by cremona, 12 years ago)

apply after all previous

  • sage/schemes/elliptic_curves/ell_finite_field.py

    # HG changeset patch
    # User John Cremona <john.cremona@gmail.com>
    # Date 1210666354 -3600
    # Node ID fe32cbf8ec4f5221fd64d88948943ad258c293aa
    # Parent  ffb27cc32dbde8e49bb77966e7d5eb1b1eb08713
    Added longer doctest for #3111
    
    diff -r ffb27cc32dbd -r fe32cbf8ec4f sage/schemes/elliptic_curves/ell_finite_field.py
    a b class EllipticCurve_finite_field(Ellipti 
    10111011            sage: E = EllipticCurve('389a')
    10121012            sage: for p in [5927, 2297, 1571, 1709, 3851, 127, 3253, 5783, 3499, 4817]:
    10131013            ...       G = E.change_ring(GF(p)).abelian_group()       
     1014            sage: for p in prime_range(10000):           #long time (~20s)
     1015            ...       if p != 389:
     1016            ...           G=E.change_ring(GF(p)).abelian_group()
    10141017        """
    10151018        if not debug:
    10161019            # if we're in debug mode, always recalculate