Skip to content

Wrong integral of sqrt(1-cos(x)) #24587

Open
@sagetrac-tmonteil

Description

@sagetrac-tmonteil

As reported on this ask question:

sage: integral(sqrt(1-cos(x)), x, 0, 2*pi)
0

This comes from the following wrong primitive

sage: integral(sqrt(1-cos(x)), x, algorithm='maxima')
-2*sqrt(2)/sqrt(sin(x)^2/(cos(x) + 1)^2 + 1)

where Fricas find a correct answer:

-2*(cos(x) + 1)*sqrt(-cos(x) + 1)/sin(x)

See Maxima bug 3659.

Upstream: Reported upstream. No feedback yet.

CC: @EmmanuelCharpentier @sagetrac-mafra @kcrisman

Component: symbolics

Keywords: integrate

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

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