Numerical integration

Computes numerically the primitive of a function.

numerical_integration(Function, Real, Real)

Given an univariated function f left parenthesis x right parenthesis and two reals a and b, computes numerically the primitive of f between a and b.

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}}