Ticket #3674: sage-trac3674new-extra.patch

File sage-trac3674new-extra.patch, 842 bytes (added by cremona, 9 years ago)
  • sage/schemes/elliptic_curves/rational_torsion.py

    # HG changeset patch
    # User John Cremona <john.cremona@gmail.com>
    # Date 1218144015 -3600
    # Node ID 75e2ab7a31f6e9ba23ba54d3b2e601539203e8ee
    # Parent  7bac06affeab640ca8d834c45693ed82fac10a6b
    #3674: extra changes
    
    diff -r 7bac06affeab -r 75e2ab7a31f6 sage/schemes/elliptic_curves/rational_torsion.py
    a b  
    4848
    4949    AUTHOR: Nick Alexander
    5050    """
    51     def __init__(self, E, flag=0):
     51    def __init__(self, E, algorithm="pari"):
    5252        self.__E = E
    5353
     54        flag = 0
     55        if algorithm=="doud":
     56            flag = 1
     57        if algorithm=="lutz_nagell":
     58            flag = 2
    5459        G = None
    5560        loop = 0
    5661        while G is None and loop < 3: