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:
function solveNonlinearEquations1 extends Modelica.Icons.Function; import Modelica.Utilities.Streams.print; input Real tolerance = 100 * Modelica.Constants.eps "Relative tolerance of solution u"; end solveNonlinearEquations1;