Skip to content

Wrong Maxima integral result for even exponents #22138

@paulmasson

Description

@paulmasson
mannequin

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions