Ticket #3674: sage-trac3674c.patch

File sage-trac3674c.patch, 771 bytes (added by was, 9 years ago)

fix so e.integral_points() works when e.rank() >= 1.

  • sage/schemes/elliptic_curves/ell_rational_field.py

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1216667643 -7200
    # Node ID 5b2c01d6f604c019464f08053797846b8b373f92
    # Parent  c82291a3c3c2201a58391ae471eac35a3028032e
    #3674 -- integral points on curves
    
    diff -r c82291a3c3c2 -r 5b2c01d6f604 sage/schemes/elliptic_curves/ell_rational_field.py
    a b class EllipticCurve_rational_field(Ellip 
    15251525            points = self.gens()
    15261526        else:
    15271527            for P in points:
    1528                 assert P.curve() is self
     1528                assert P.curve() == self
    15291529
    15301530        r = len(points)
    15311531        if precision is None: