function solve
import Modelica.Utilities.Streams.error;
extends Modelica.Icons.Function;
input Real y_zero "Determine x_zero, such that f_nonlinear(x_zero) = y_zero";
input Real x_min "Minimum value of x";
input Real x_max "Maximum value of x";
input Real pressure = 0.0 "disregaded variables (here always used for pressure)";
input Real[:] X = fill(0, 0) "disregaded variables (here always used for composition)";
input f_nonlinear_Data f_nonlinear_data "Additional data for function f_nonlinear";
input Real x_tol = 100*Modelica.Constants.eps "Relative tolerance of the result";
output Real x_zero "f_nonlinear(x_zero) = y_zero";
end solve;