LambertWIter

Iterative form of Lambert's w function for solving f(x) = x exp(x) for x

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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.

Syntax

(x, iter) = LambertWIter(y)

Inputs (1)

y

Type: Real

Description: Input f(x)

Outputs (2)

x

Type: Real

Description: Output W(y)

iter

Type: Integer