WOLFRAM SYSTEM MODELER

solveNonlinearEquations2

Solve nonlinear equations with user dependent inputs

Wolfram Language

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

Information

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

This example solves the following nonlinear equations with function solveOneNonlinearEquation. The user can set the parameters, like "w" or "m", and can experiment with different start intervals. The following nonlinear equations are solved:

  • 0 = u^2 - 1
  • 0 = 3*u - sin(w*u) - 1
  • 0 = p[1] + log(p[2]*u) - m*u

Syntax

solveNonlinearEquations2(tolerance, u_min1, u_max1, u_min2, u_max2, w, u_min3, u_max3, p, m)

Inputs (10)

tolerance

Default Value: 100 * Modelica.Constants.eps

Type: Real

Description: Relative tolerance of solution u

u_min1

Default Value: -0.5

Type: Real

Description: Lower limit

u_max1

Default Value: 10

Type: Real

Description: Upper limit

u_min2

Default Value: 0

Type: Real

Description: Lower limit

u_max2

Default Value: 5

Type: Real

Description: Upper limit

w

Default Value: 3

Type: Real

Description: Angular velocity

u_min3

Default Value: 1

Type: Real

Description: Lower limit

u_max3

Default Value: 8

Type: Real

Description: Upper limit

p

Default Value: {5, 1}

Type: Real[2]

Description: Parameter vector

m

Default Value: 1

Type: Real

Description: Parameter