# 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 :: sage: integral(sinh(x^2+sqrt(x-1)),x)  # long time (15s on sage.math, 2012) integrate(sinh(sqrt(x - 1) + x^2), x) integrate(sinh(x^2 + sqrt(x - 1)), x) This last one stumps other systems too.
• ## sage/misc/functional.py

`diff --git a/sage/misc/functional.py b/sage/misc/functional.py`
 a sage: f = exp(-x) * sinh(sqrt(x)) sage: t = integrate(f, x, 0, Infinity); t            # long time -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) 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) sage: t.simplify_exp()  # long time 1/2*sqrt(pi)*e^(1/4)