functionquadratureLobatto2

Integrate integral with user dependent inputs

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

Information

This example solves the following integrands with function quadratureLobatto. The user can set the parameters, like "w" or "k", and can experiment with different integration intervals. The following integrals are computed:

  • integral(sin(x)*dx)
  • integral(sin(w*x)*dx)
  • elliptic integral

Inputs

TypeNameDefaultDescription
RealTolerance1e-5Error tolerance of integral value
Reala10Lower limit
Realb11Upper limit
Reala20Lower limit
Realb213Upper limit
Realw5Angular velocity
Reala30Lower limit
Realb3Modelica.Constants.pi/2Upper limit
Realk1/sqrt(2)Module