Skip to content

Numerical approximation of a divergent integral #14274

Open
@eviatarbach

Description

@eviatarbach

Sage is numerically approximating this integral, even though it's divergent:

sage: integrate(x^3/sqrt(x^7+1), x, 1, oo).n()              
-2.0585298599983344

It seems that if we don't allow Maxima to detect its divergence (numerical_integral passes it directly to GSL), GSL will also fail on simpler divergent integrals:

sage: numerical_integral(1/x, 1, oo)
(65.94931131932763, 8.156214940519742)
sage: numerical_integral(x,1,oo)                    
(-0.4999999993521234, 1.3615531480049015e-09)

See also this ask question:

sage: numerical_integral(e^(-x)/x,0,oo)
(37.191280375549404, 6.239196965189217)

Component: calculus

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions