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

Commit

Permalink
31873: fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
mwageringel committed Jul 26, 2021
1 parent 4481d50 commit bb15f0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/doc/en/prep/Calculus.rst
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ help it look nicer in the browser?
Some integrals are a little tricky, of course. Sage tries hard to integrate using Maxima, Giac and Sympy::

sage: integral(1/(1+x^10),x)
1/20*(sqrt(5) + 1)*arctan((4*x + sqrt(-2*sqrt(5) + 10))/(sqrt(5) + 1))
...1/20*(sqrt(5) + 1)*arctan((4*x + sqrt(-2*sqrt(5) + 10))/(sqrt(5) + 1))
+ 1/20*(sqrt(5) + 1)*arctan((4*x - sqrt(-2*sqrt(5) + 10))/(sqrt(5) + 1))
+ 1/20*(sqrt(5) - 1)*arctan((4*x + sqrt(2*sqrt(5) + 10))/(sqrt(5) - 1))
+ 1/20*(sqrt(5) - 1)*arctan((4*x - sqrt(2*sqrt(5) + 10))/(sqrt(5) - 1))
Expand Down
8 changes: 6 additions & 2 deletions src/sage/symbolic/integration/integral.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ def _eval_(self, f, x):
Check that :trac:`32002` is fixed::
sage: integral(2*min_symbolic(x,2*x),x)
sage: result = integral(2*min_symbolic(x,2*x),x)
...
sage: result
-1/2*x^2*sgn(x) + 3/2*x^2
"""
# Check for x
Expand Down Expand Up @@ -218,7 +220,9 @@ def _eval_(self, f, x, a, b):
Check that :trac:`32002` is fixed::
sage: integral(2*min_symbolic(x,2*x),x,-1,1)
sage: result = integral(2*min_symbolic(x,2*x),x,-1,1)
...
sage: result
-1
"""
# Check for x
Expand Down

0 comments on commit bb15f0f

Please sign in to comment.