Skip to content

Commit

Permalink
src/sage/functions/piecewise.py: switch one test from giac to sympy
Browse files Browse the repository at this point in the history
There's one piecewise test that uses algorithm='giac', but it will
soon be possible to install sage without giac. We could make the test
conditional on giac's presence, but the same thing works with sympy,
so let's just use that.
  • Loading branch information
orlitzky committed Sep 21, 2024
1 parent 1037153 commit df6d309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/functions/piecewise.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,9 +828,9 @@ def integral(self, parameters, variable, x=None, a=None, b=None, definite=False,
Check that the algorithm keyword can be used::
sage: ex = piecewise([([0, 1], 1), ((1, oo), 1/x**2)])
sage: integral(ex, x, 0, 100, algorithm='giac')
sage: integral(ex, x, 0, 100, algorithm='sympy')
199/100
sage: integral(ex, x, algorithm='giac')
sage: integral(ex, x, algorithm='sympy')
piecewise(x|-->x on [0, 1], x|-->-1/x + 2 on (1, +oo); x)
"""
if a is not None and b is not None:
Expand Down

0 comments on commit df6d309

Please sign in to comment.