Opened 2 years ago

Last modified 2 years ago

#22138 new defect

Wrong Maxima integral result for even exponents

Reported by: paulmasson Owned by:
Priority: major Milestone: sage-7.6
Component: symbolics Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Not yet reported upstream; Will do shortly. Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by tmonteil)

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.

Change History (2)

comment:1 Changed 2 years ago by tmonteil

  • Description modified (diff)

comment:2 Changed 2 years ago by kcrisman

  • Report Upstream changed from N/A to Not yet reported upstream; Will do shortly.

Don't forget to report upstream if possible.

Note: See TracTickets for help on using tickets.