Numerical Integrals

Description

Sage uses an adaptive algorithm to numerically approximate a definite integral. In addition to the approximation, an error bound is returned. The following Sage command evaluates

(1)
\begin{align} \int_0^1 e^{-x^2} \, dx \end{align}

Sage Cell

Code

numerical_integral(exp(-x^2),  0, 1)

Options

Option

Use +Infinity and -Infinity for plus or minus infinity.

Code

numerical_integral(exp(-x^2),  0, +Infinity)

Tags

Primary Tags: single variable calculus, basic calculus commands

Secondary Tags: integration

Related Cells

Attribute

Permalink:

Author: T. W. Judson

Date: 15 May 2018 21:12

Submitted by: Tom Judson

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License