solve

Syntax

x_zero = solve(y_zero, x_min, x_max, pressure, X, f_nonlinear_data, x_tol)

Inputs (7)

y_zero

Type: Real

Description: Determine x_zero, such that f_nonlinear(x_zero) = y_zero

x_min

Type: Real

Description: Minimum value of x

x_max

Type: Real

Description: Maximum value of x

pressure

Default Value: 0.0

Type: Real

Description: Disregarded variables (here always used for pressure)

X

Default Value: fill(0, 0)

Type: Real[:]

Description: Disregarded variables (here always used for composition)

f_nonlinear_data

Type: f_nonlinear_Data

Description: Additional data for function f_nonlinear

x_tol

Default Value: 100 * Modelica.Constants.eps

Type: Real

Description: Relative tolerance of the result

Outputs (1)

x_zero

Type: Real

Description: f_nonlinear(x_zero) = y_zero