Skip to content

Commit a563813

Browse files
committed
src/sage/functions/piecewise.py: needs sage.libs.giac -> needs giac
Some tests in this file use the giac pexpect interface but are tagged with "needs sage.libs.giac". Now that we have a feature for the giac executable, "needs giac" is more appropriate.
1 parent 64d8bf5 commit a563813

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/sage/functions/piecewise.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,16 +1470,18 @@ def _giac_init_(self, parameters, variable):
14701470
14711471
EXAMPLES::
14721472
1473+
sage: # needs giac
14731474
sage: ex = piecewise([((0, 1), pi), ([1, 2], x)])
1474-
sage: f = ex._giac_(); f # needs sage.libs.giac
1475+
sage: f = ex._giac_(); f
14751476
piecewise(((sageVARx>0) and (1>sageVARx)),pi,((sageVARx>=1) and (2>=sageVARx)),sageVARx)
1476-
sage: f.diff(x) # needs sage.libs.giac
1477+
sage: f.diff(x)
14771478
piecewise(((sageVARx>0) and (1>sageVARx)),0,((sageVARx>=1) and (2>=sageVARx)),1)
14781479
1479-
sage: ex = piecewise([((-100, -2), 1/x), ((1, +oo), cos(x))]) # needs sage.libs.giac
1480-
sage: g = ex._giac_(); g # needs sage.libs.giac
1480+
sage: # needs giac
1481+
sage: ex = piecewise([((-100, -2), 1/x), ((1, +oo), cos(x))])
1482+
sage: g = ex._giac_(); g
14811483
piecewise(((sageVARx>-100) and ((-2)>sageVARx)),1/sageVARx,sageVARx>1,cos(sageVARx))
1482-
sage: g.diff(x) # needs sage.libs.giac
1484+
sage: g.diff(x)
14831485
piecewise(((sageVARx>-100) and ((-2)>sageVARx)),-1/sageVARx^2,sageVARx>1,-sin(sageVARx))
14841486
14851487
TESTS::

0 commit comments

Comments
 (0)