This function calculates an approximation of the inverse for
f(x) = y = x * exp( x )
within ∞ > y > -1/e. The relative deviation of this approximation for Lambert's w function x = W(y) is displayed in the following graph.
For y > 10 and higher values the relative deviation is smaller 2%.
function LambertW extends Modelica.Icons.Function; input Real y "f(x)"; output Real x "W(y)"; end LambertW;