Skip to content

Fix Maxima integral giving principal value when not needed #17608

@kcrisman

Description

@kcrisman

(%i1) integral(sec(x), x, -%pi/4, %pi/4);
                                              %pi  %pi
(%o1)                   integral(sec(x), x, - ---, ---)
                                               4    4
(%i2) integrate(sec(x), x, -%pi/4, %pi/4);
Principal Value
                         sqrt(2) + 2          sqrt(2) - 2
(%o2)                log(-----------) - log(- -----------)
                              2                    2

but Sage has

sage: integral(sec(x), x, -pi/4, pi/4)
ValueError: Integral is divergent

because of the PV. See also #13511.

Upstream: Fixed upstream, but not in a stable release.

Component: calculus

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

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