Ticket #12692: 12692.patch

File 12692.patch, 1.0 KB (added by jdemeyer, 8 years ago)
  • sage/schemes/elliptic_curves/ell_point.py

    # HG changeset patch
    # User Jennifer Balakrishnan <jen@math.harvard.edu>
    # Date 1332379212 25200
    # Node ID 38ec77dc5346bde5c8285e92c15576ec7675d238
    # Parent  3f313a7e3dad0d11d06cd824708ae2e626b64a2d
    Create a stopgap warning for #12509:
    Computation of heights on elliptic curves over fields other than Q
    can return very imprecise results.
    
    diff --git a/sage/schemes/elliptic_curves/ell_point.py b/sage/schemes/elliptic_curves/ell_point.py
    a b  
    25652565            h = Emin.pari_curve(prec=precision).ellheight(P, precision=precision)
    25662566            height = rings.RealField(precision)(h)
    25672567        else:
     2568            from sage.misc.stopgap import stopgap
     2569            stopgap("Computation of heights on elliptic curves over fields other than Q can return very imprecise results.", 12509)
    25682570            height = (self.nonarchimedian_local_height(prec=precision)
    25692571                        + self.archimedian_local_height(prec=precision))
    25702572