Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
adding one doctest for integral
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Sep 18, 2022
1 parent 59ac11a commit 22385d9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/sage/symbolic/integration/integral.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def _tderivative_(self, f, x, a, b, diff_param=None):

def _print_latex_(self, f, x, a, b):
r"""
Convert this integral to LaTeX notation
Convert this integral to LaTeX notation.
EXAMPLES::
Expand All @@ -345,7 +345,7 @@ def _print_latex_(self, f, x, a, b):

def _sympy_(self, f, x, a, b):
"""
Convert this integral to the equivalent SymPy object
Convert this integral to the equivalent SymPy object.
The resulting SymPy integral can be evaluated using ``doit()``.
Expand Down Expand Up @@ -1038,6 +1038,12 @@ def integrate(expression, v=None, a=None, b=None, algorithm=None, hold=False):
sage: x,m = SR.var('x,m', domain='real') # long time
sage: integrate(elliptic_e(x,m).diff(x), x) # long time
elliptic_e(x, m)
Check that :trac:`20467` is fixed::
sage: k = var('k')
sage: integral(sin(k*x)/x*erf(x^2), x, 0, oo, algorithm='maxima')
integrate(erf(x^2)*sin(k*x)/x, x, 0, +Infinity)
"""
expression, v, a, b = _normalize_integral_input(expression, v, a, b)
if algorithm is not None:
Expand Down

0 comments on commit 22385d9

Please sign in to comment.