functionquadratureLobatto1

Integrate integral with fixed inputs

Extends from Modelica.Icons.Function (Icon for functions).

Information

This example integrates the following integrands with function quadratureLobatto and compares the result with an analytical solution. The examples also demonstrate how additional input arguments to the integrand function can be passed as additional arguments. The following integrals are computed:

  • integral(sin(x)*dx) from x=0 to x=1
  • integral(sin(5*x)*dx) from x=0 to x=13
  • elliptic integral from x=0 to pi/2

Inputs

TypeNameDefaultDescription
Realtolerance1e-5Error tolerance of integral values