.Modelica.Fluid.Dissipation.Utilities.Functions.General.LambertW

Information

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.

LambertW_deviation

For y > 10 and higher values the relative deviation is smaller 2%.

Interface

function LambertW
  extends Modelica.Icons.Function;
  input Real y "Input f(x)";
  output Real x "Output W(y)";
end LambertW;

Generated at 2024-12-24T19:25:53Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos