sagemath / sage

Main repository of SageMath. Now open for Issues and Pull Requests.
https://www.sagemath.org
Other
1.19k stars 412 forks source link

Fix Maxima integral giving principal value when not needed #17608

Open kcrisman opened 9 years ago

kcrisman commented 9 years ago

(%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

kcrisman commented 6 years ago

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

kcrisman commented 6 years ago
comment:2

Fixed in Maxima bug 2880, apparently.