-
-
Notifications
You must be signed in to change notification settings - Fork 677
Open
Description
As reported on this ask question, the commands
var('n')
assume(n,'integer')
integral(x^n*sin(x),x)
produce the output
1/4*(((-1)^n - 1)*gamma(n + 1, I*x) - ((-1)^n - 1)*gamma(n + 1, -I*x))*(-1)^(-1/2*n)
which is identically zero for n even. Possibly an issue with branches of exponential integrals. Possibly related to #17968.
Upstream: Not yet reported upstream; Will do shortly.
Component: symbolics
Issue created by migration from https://trac.sagemath.org/ticket/22138