Ticket #10832: trac_10832-descent.patch

File trac_10832-descent.patch, 1023 bytes (added by cremona, 11 years ago)

Applies to 4.6.2.rc0

  • sage/schemes/elliptic_curves/ell_rational_field.py

    # HG changeset patch
    # User John Cremona <john.cremona@gmail.com>
    # Date 1298432065 0
    # Node ID e1650fe7bd846a6d16bc7358426e5fb9ce79b0e6
    # Parent  6343a794acd042aa2f453fd75e60415c049efa8d
    trac_10832 error in processing output from simon_two_descent
    
    diff -r 6343a794acd0 -r e1650fe7bd84 sage/schemes/elliptic_curves/ell_rational_field.py
    a b  
    14791479        two_selmer_rank = rings.Integer(t[1])
    14801480        gens_mod_two = [self(P) for P in t[2]]
    14811481        if rank_low_bd == two_selmer_rank - self.two_torsion_rank():
    1482             gens = [P for P in gens_mod_two if P.additive_order() != 2]
     1482            gens = [P for P in gens_mod_two if P.has_infinite_order()]
     1483            gens = self.saturation(gens)[0]
    14831484            self.__gens[True] = gens
    14841485            self.__gens[True].sort()
    14851486            self.__rank[True] = len(self.__gens[True])