functionquadratureLobatto
Return the integral of an integrand function using an adaptive Lobatto rule
Extends from Modelica.Icons.Function (Icon for functions).
Information
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.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Math.Nonlinear.Interfaces.partialScalarFunction | f | Integrand function | |
| Real | a | Lower limit of integration interval | |
| Real | b | Upper limit of integration interval | |
| Real | tolerance | 100*Modelica.Constants.eps | Relative tolerance for integral value |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | integral | Integral value |
Contents
| Name | Description |
|---|---|
| quadStepprotected | Recursive function used by quadrature |