Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions src/sage/symbolic/integration/integral.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,12 +684,12 @@
The following definite integral is not found by maxima::

sage: f(x) = (x^4 - 3*x^2 + 6) / (x^6 - 5*x^4 + 5*x^2 + 4)
sage: integrate(f(x), x, 1, 2, algorithm='maxima')

Check warning on line 687 in src/sage/symbolic/integration/integral.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all)

Warning: slow doctest:

slow doctest:: Test ran for 5.52s cpu, 7.07s wall Check ran for 0.00s cpu, 0.00s wall

Check warning on line 687 in src/sage/symbolic/integration/integral.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11, all)

Warning: slow doctest:

slow doctest:: Test ran for 5.70s cpu, 6.17s wall Check ran for 0.00s cpu, 0.00s wall

Check warning on line 687 in src/sage/symbolic/integration/integral.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all, editable)

Warning: slow doctest:

slow doctest:: Test ran for 5.62s cpu, 6.44s wall Check ran for 0.00s cpu, 0.00s wall
integrate((x^4 - 3*x^2 + 6)/(x^6 - 5*x^4 + 5*x^2 + 4), x, 1, 2)

but is nevertheless computed::

sage: integrate(f(x), x, 1, 2)

Check warning on line 692 in src/sage/symbolic/integration/integral.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all)

Warning: slow doctest:

slow doctest:: Test ran for 5.35s cpu, 5.84s wall Check ran for 0.00s cpu, 0.00s wall

Check warning on line 692 in src/sage/symbolic/integration/integral.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, all, editable)

Warning: slow doctest:

slow doctest:: Test ran for 5.75s cpu, 6.00s wall Check ran for 0.00s cpu, 0.00s wall
-1/2*pi + arctan(8) + arctan(5) + arctan(2) + arctan(1/2)

Both fricas and sympy give the correct result::
Expand Down Expand Up @@ -999,46 +999,6 @@
sage: bool(actual == expected)
True

::

sage: # needs sage.libs.giac
sage: result = integrate(cos(x + abs(x)), x)
...
sage: result
sin(x*sgn(x) + x)/(sgn(x) + 1)

::

sage: # needs sage.libs.giac
sage: result = integrate(1/(1 + abs(x)), x)
...
sage: result
log(abs(x*sgn(x) + 1))/sgn(x)

::

sage: # needs sage.libs.giac
sage: result = integrate(1/sqrt(abs(x)), x)
...
sage: result
2*sqrt(x*sgn(x))/sgn(x)

::

sage: # needs sage.libs.giac
sage: result = integrate(1/(1 + abs(x)), x)
...
sage: result
log(abs(x*sgn(x) + 1))/sgn(x)

::

sage: # needs sage.libs.giac
sage: result = integrate(cos(x + abs(x)), x)
...
sage: result
sin(x*sgn(x) + x)/(sgn(x) + 1)

Some tests for :issue:`17468`::

sage: integral(log(abs(2*sin(x))), x, 0, pi/3)
Expand Down
Loading