Skip to content

Wrong integration of abs(sin(x)*cos(x)) #23271

@pdenapo

Description

@pdenapo
mannequin

Sage ignores the absolute value in the following symbolic integration.

sage: g=abs(sin(x)*cos(x))
sage: g.integrate(0,2*pi)
0

(the right result is 2, the integrand is positive in the interval so the
integral can never be 0!

sage: version()
'SageMath version 7.6, Release Date: 2017-03-25'

Component: symbolics

Keywords: symbolic integration, absolute value, abs_integrate

Issue created by migration from https://trac.sagemath.org/ticket/23271

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