WOLFRAM SYSTEM MODELER

solveNonlinearEquations1

Solve nonlinear equations with fixed inputs

Wolfram Language

In[1]:=
SystemModel["Modelica.Math.Nonlinear.Examples.solveNonlinearEquations1"]
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 and compares the result with the available analytical solution. The examples also demonstrate how additional input arguments to the nonlinear equation function can be passes as additional arguments. The following nonlinear equations are solved:

  • 0 = u^2 - 1
  • 0 = 3*u - sin(3*u) - 1
  • 0 = 5 + log(u) - u

Syntax

solveNonlinearEquations1(tolerance)

Inputs (1)

tolerance

Default Value: 100 * Modelica.Constants.eps

Type: Real

Description: Relative tolerance of solution u