WOLFRAM SYSTEM MODELER

quadratureLobatto1

Integrate integral with fixed inputs

Wolfram Language

In[1]:=
SystemModel["Modelica.Math.Nonlinear.Examples.quadratureLobatto1"]
Out[1]:=

Information

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

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

Syntax

quadratureLobatto1(tolerance)

Inputs (1)

tolerance

Default Value: 1e-5

Type: Real

Description: Error tolerance of integral values