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

Commit bb15f0f

Browse files
committed
31873: fix doctests
1 parent 4481d50 commit bb15f0f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/doc/en/prep/Calculus.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ help it look nicer in the browser?
319319
Some integrals are a little tricky, of course. Sage tries hard to integrate using Maxima, Giac and Sympy::
320320

321321
sage: integral(1/(1+x^10),x)
322-
1/20*(sqrt(5) + 1)*arctan((4*x + sqrt(-2*sqrt(5) + 10))/(sqrt(5) + 1))
322+
...1/20*(sqrt(5) + 1)*arctan((4*x + sqrt(-2*sqrt(5) + 10))/(sqrt(5) + 1))
323323
+ 1/20*(sqrt(5) + 1)*arctan((4*x - sqrt(-2*sqrt(5) + 10))/(sqrt(5) + 1))
324324
+ 1/20*(sqrt(5) - 1)*arctan((4*x + sqrt(2*sqrt(5) + 10))/(sqrt(5) - 1))
325325
+ 1/20*(sqrt(5) - 1)*arctan((4*x - sqrt(2*sqrt(5) + 10))/(sqrt(5) - 1))

src/sage/symbolic/integration/integral.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ def _eval_(self, f, x):
107107
108108
Check that :trac:`32002` is fixed::
109109
110-
sage: integral(2*min_symbolic(x,2*x),x)
110+
sage: result = integral(2*min_symbolic(x,2*x),x)
111+
...
112+
sage: result
111113
-1/2*x^2*sgn(x) + 3/2*x^2
112114
"""
113115
# Check for x
@@ -218,7 +220,9 @@ def _eval_(self, f, x, a, b):
218220
219221
Check that :trac:`32002` is fixed::
220222
221-
sage: integral(2*min_symbolic(x,2*x),x,-1,1)
223+
sage: result = integral(2*min_symbolic(x,2*x),x,-1,1)
224+
...
225+
sage: result
222226
-1
223227
"""
224228
# Check for x

0 commit comments

Comments
 (0)