Opened 3 years ago

Last modified 3 years ago

#22138 new defect

Wrong Maxima integral result for even exponents — at Initial Version

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

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 (0)

Note: See TracTickets for help on using tickets.