This function calculates an approximation of the inverse for
f(x) = y = x * exp( x )
within ∞ > y > -1/e. Please note, that for negative inputs two solutions exists. The function currently delivers the result x = -1 ... 0 for that particular range.
function LambertWIter extends Modelica.Icons.Function; input Real y "f(x)"; output Real x "W(y)"; output Integer iter; end LambertWIter;