Skip to content

Commit e1e4071

Browse files
sagemath#33034 add doctest that integral is 0
1 parent 5188024 commit e1e4071

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/sage/misc/functional.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,13 @@ def integral(x, *args, **kwds):
776776
...
777777
sage: result # needs sage.symbolic
778778
-1/4
779+
780+
Verify that :issue:`33034` is fixed::
781+
782+
sage: f(x) = (x + sin(3*x)) * exp(-3*x*I)
783+
sage: h(x) = f(x) - f(x).expand()
784+
sage: integral(h(x), (x, 0, 2*pi))
785+
0
779786
"""
780787
if hasattr(x, 'integral'):
781788
return x.integral(*args, **kwds)

0 commit comments

Comments
 (0)