quadratureLobatto

Return the integral of an integrand function using an adaptive Lobatto rule

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Syntax

quadratureLobatto(function f(), a, b);
quadratureLobatto(function f(), a, b, tolerance=100*Modelica.Constants.eps);

Description

Compute definite integral over function f(u,...) from u=a up to u=b using the adaptive Lobatto rule according to:

Walter Gander:
Adaptive Quadrature - Revisited. 1998. ftp://ftp.inf.ethz.ch/pub/publications/tech-reports/3xx/306.ps

Example

See the examples in Modelica.Math.Nonlinear.Examples.

Syntax

integral = quadratureLobatto(f, a, b, tolerance)

Inputs (4)

f

Type: partialScalarFunction

Description: Integrand function

a

Type: Real

Description: Lower limit of integration interval

b

Type: Real

Description: Upper limit of integration interval

tolerance

Default Value: 100 * Modelica.Constants.eps

Type: Real

Description: Relative tolerance for integral value

Outputs (1)

integral

Type: Real

Description: Integral value