Skip to content

wrong result of integral #21440

@dkrenn

Description

@dkrenn
sage: f1 = (2*cos(2*pi*x) - cos(4*pi*x)) / (5 - 4*cos(2*pi*x))
sage: integrate(f1, x, 0, 1)
23/24

but it should be 1/4:

sage: sage: numerical_integral(f1,0,1)
(0.24999999999999997, 4.6160077311221225e-15)

and

sage: e(x)=exp(2*pi*I*x)
sage: f2=real(e(x)/(2-e(-x)))
sage: (f1-f2).simplify_trig()  # f1 equals f2
0
sage: integrate(f2,x,0,1)
1/4

This was reported by Lukas Spiegelhofer on 8/10/2015 16:00:13 via "Sage Notebooks Bugreports".

Upstream: Reported upstream. Developers acknowledge bug.

Component: symbolics

Keywords: wrong result, integration

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

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