Skip to content

Commit f12c887

Browse files
committed
src/sage/symbolic/integration/integral.py: add "needs" for libgiac integration
A few examples in this file integrate with algorithm='giac', which can fail if sage.libs.giac is not available to perform the integration.
1 parent 0f9f385 commit f12c887

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sage/symbolic/integration/integral.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def __init__(self):
5959
6060
Check for :issue:`28913`::
6161
62+
sage: # needs sage.libs.giac
6263
sage: Ex = (1-2*x^(1/3))^(3/4)/x
6364
sage: integrate(Ex, x, algorithm='giac') # long time
6465
4*(-2*x^(1/3) + 1)^(3/4) + 6*arctan((-2*x^(1/3) + 1)^(1/4)) - 3*log((-2*x^(1/3) + 1)^(1/4) + 1) + 3*log(abs((-2*x^(1/3) + 1)^(1/4) - 1))
@@ -200,6 +201,7 @@ def __init__(self):
200201
201202
Check for :issue:`32354`::
202203
204+
sage: # needs sage.libs.giac
203205
sage: ex = 1/max_symbolic(x, 1)**2
204206
sage: integral(ex, x, 0, 2, algorithm='giac')
205207
3/2
@@ -690,6 +692,7 @@ def integrate(expression, v=None, a=None, b=None, algorithm=None, hold=False):
690692
691693
Using Giac to integrate the absolute value of a trigonometric expression::
692694
695+
sage: # needs sage.libs.giac
693696
sage: integrate(abs(cos(x)), x, 0, 2*pi, algorithm='giac')
694697
4
695698
sage: result = integrate(abs(cos(x)), x, 0, 2*pi)

0 commit comments

Comments
 (0)