From 0f9f385e15aaf0abdada36f19358971bd5cee05c Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 20 Sep 2024 09:38:16 -0400 Subject: [PATCH] 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. --- src/sage/functions/piecewise.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sage/functions/piecewise.py b/src/sage/functions/piecewise.py index 8a8cbcb62b2..3a5f5c92e20 100644 --- a/src/sage/functions/piecewise.py +++ b/src/sage/functions/piecewise.py @@ -827,6 +827,7 @@ def integral(self, parameters, variable, x=None, a=None, b=None, definite=False, Check that the algorithm keyword can be used:: + sage: # needs sage.libs.giac sage: ex = piecewise([([0, 1], 1), ((1, oo), 1/x**2)]) sage: integral(ex, x, 0, 100, algorithm='giac') 199/100