Computes the Lambert W function.
- x (Double)
- The argument, which must be greater than or equal to -1/e.
The value W(x).
The Lambert W function solves the transcendental equation W eW = x. The function appears in a number of contexts, including the solution of differential equations and the enumeration of trees.