Skip to content

Commit 0f9f385

Browse files
committed
src/sage/functions/piecewise.py: add "needs" for libgiac integration
One example in this file integrates with algorithm='giac', which can fail if sage.libs.giac is not available to perform the integration.
1 parent b11ce1e commit 0f9f385

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sage/functions/piecewise.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,7 @@ def integral(self, parameters, variable, x=None, a=None, b=None, definite=False,
827827
828828
Check that the algorithm keyword can be used::
829829
830+
sage: # needs sage.libs.giac
830831
sage: ex = piecewise([([0, 1], 1), ((1, oo), 1/x**2)])
831832
sage: integral(ex, x, 0, 100, algorithm='giac')
832833
199/100

0 commit comments

Comments
 (0)