Ticket #12586: ticket_12586_fix_doctest-v2.patch

File ticket_12586_fix_doctest-v2.patch, 789 bytes (added by jdemeyer, 7 years ago)
  • sage/gsl/integration.pyx

    # HG changeset patch
    # User Julien Puydt <julien.puydt@laposte.net>
    # Date 1338274399 25200
    # Node ID 6f7b1399c2788bc87650e59a117c904c3de16fd4
    # Parent  cdcc6476e1a5f76c060d96da396d53115f00446f
    Changed a doctest to work when ECL's float printing is patched to fix #12586
    
    diff --git a/sage/gsl/integration.pyx b/sage/gsl/integration.pyx
    a b  
    170170    function (which uses GSL) or the native integration (which uses Maxima)::
    171171
    172172        sage: exp(-1/x).nintegral(x, 1, 2)  # via maxima
    173         (0.504792217873184, 5.604319429344075e-15, 21, 0)
     173        (0.50479221787318..., 5.60431942934407...e-15, 21, 0)
    174174        sage: numerical_integral(exp(-1/x), 1, 2)
    175175        (0.50479221787318..., 5.60431942934407...e-15)
    176176