Ticket #5346: trac_5346.patch

File trac_5346.patch, 1.6 KB (added by cremona, 13 years ago)

Apply to 3.4.1

  • sage/schemes/elliptic_curves/ell_rational_field.py

    # HG changeset patch
    # User John Cremona <john.cremona@gmail.com>
    # Date 1240478085 -3600
    # Node ID 8a246da2f0cbfe7d82d1d2bcdbe5893cebd47756
    # Parent  891da50821bd920d08245dfb718a0f99bda908cc
    [mq]: ecdb
    
    diff -r 891da50821bd -r 8a246da2f0cb sage/schemes/elliptic_curves/ell_rational_field.py
    a b  
    31793179       
    31803180        ::
    31813181       
    3182             sage: E=EllipticCurve([1,2,3,4,5]);
     3182            sage: E = EllipticCurve([1, -1, 0, -79, 289])
    31833183            sage: E.conductor()
    3184             10351
     3184            234446
    31853185            sage: E.cremona_label()
    31863186            Traceback (most recent call last):
    31873187            ...
    3188             RuntimeError: Cremona label not known for Elliptic Curve defined by y^2 + x*y + 3*y = x^3 + 2*x^2 + 4*x + 5 over Rational Field.
     3188            RuntimeError: Cremona label not known for Elliptic Curve defined by y^2 + x*y = x^3 - x^2 - 79*x + 289 over Rational Field.
    31893189        """
    31903190        try:
    31913191            if not space:
     
    49384938            sage: K = QuadraticField(-7,'a')
    49394939            sage: G = E.change_ring(K)
    49404940            sage: phi = F.change_ring(K).isomorphism_to(G)
    4941             sage: P = G(E.0) + G(E.1) + G(phi(F.0)); P
     4941            sage: P = G(E(-1,1)) + G((0,-1)) + G(phi(F(14,25))); P
    49424942            (-867/3872*a - 3615/3872 : -18003/170368*a - 374575/170368 : 1)
    49434943            sage: P.division_points(2)
    49444944            [(1/8*a + 5/8 : -5/16*a - 9/16 : 1)]