Numerical integration

Computes numerically the primitive of a function.

Syntax

numerical_integration(Function, Real, Real)

Description

Given an univariated function f(x) and two reals a and b, computes numerically the primitive of f between aLaTeXa and bLaTeXb.

calculus.numerical_integration1.calc.png

Options

Option

Description

Format

Default value

method

We can choose the method to use: Integrat, Trapezis, Simpson, Romberg, Gauss-Legendre, Gauss-Laguerre, Gauss-Txebixev and Gauss-Hermite

{method="Simpson"}

{method="Integrat"}

step

We can choose the integration step

{step=10}

For Gauss-Hermite, Gauss-Laguerre, Gauss-Legendre and Gauss-Txebixev, the default value is 6; for Integrat and Romberg is 10, while for Simpson and Trapezis is 100.

tolerance

We can choose the tolerance

{tolerance=10^{-8}}

{tolerance=10^{-5}}