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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | Tolerance | 1e-5 | Error tolerance of integral value |
| Real | a1 | 0 | Lower limit |
| Real | b1 | 1 | Upper limit |
| Real | a2 | 0 | Lower limit |
| Real | b2 | 13 | Upper limit |
| Real | w | 5 | Angular velocity |
| Real | a3 | 0 | Lower limit |
| Real | b3 | Modelica.Constants.pi/2 | Upper limit |
| Real | k | 1/sqrt(2) | Module |