Ticket #9880: trac_9880-review.patch

File trac_9880-review.patch, 1.2 KB (added by jpflori, 8 years ago)

Reviewer patch, fix two doctests.

  • doc/en/prep/Calculus.rst

    # HG changeset patch
    # User Jean-Pierre Flori <jean-pierre.flori@ssi.gouv.fr>
    # Date 1369661784 -7200
    # Node ID ccad94eb0a395a3c6081704a3e0a92b10542b70e
    # Parent  43cc30a191f8e6b53562963439dbb7c255cef6ea
    #9880: reviewer patch -- missing doctests
    
    diff --git a/doc/en/prep/Calculus.rst b/doc/en/prep/Calculus.rst
    a b  
    321321::
    322322
    323323    sage: integral(sinh(x^2+sqrt(x-1)),x)  # long time (15s on sage.math, 2012)
    324     integrate(sinh(sqrt(x - 1) + x^2), x)
     324    integrate(sinh(x^2 + sqrt(x - 1)), x)
    325325
    326326This last one stumps other systems too.
    327327
  • sage/misc/functional.py

    diff --git a/sage/misc/functional.py b/sage/misc/functional.py
    a b  
    725725
    726726        sage: f = exp(-x) * sinh(sqrt(x))
    727727        sage: t = integrate(f, x, 0, Infinity); t            # long time
    728         -1/4*((erf(1) - 1)*sqrt(pi) - sqrt(pi) + 2*e^(-1) - 2)*e^(1/4) + 1/4*((erf(1) - 1)*sqrt(pi) + sqrt(pi) + 2*e^(-1) - 2)*e^(1/4)
     728        1/4*(sqrt(pi)*(erf(1) - 1) + sqrt(pi) + 2*e^(-1) - 2)*e^(1/4) - 1/4*(sqrt(pi)*(erf(1) - 1) - sqrt(pi) + 2*e^(-1) - 2)*e^(1/4)
    729729        sage: t.simplify_exp()  # long time
    730730        1/2*sqrt(pi)*e^(1/4)
    731731