Skip to content

integral of abs(cos(x))*sin(x) gives false results #8624

@jdemeyer

Description

@jdemeyer

The integral of abs(cos(x))*sin(x) returns the result as if abs() is ignored:

sage: integral(abs(cos(x))*sin(x),(x,pi/2,pi))
-1/2

while

sage: numerical_integral(abs(cos(x))*sin(x),pi/2,pi)
(0.49999999999999994, 5.5511151231257819e-15)

CC: @kcrisman

Component: calculus

Author: Jason Grout

Reviewer: Burcin Erocal

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions