AdvancedMathLambertW Method

Computes the Lambert W function.

Definition

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static double LambertW(
	double x
)

Parameters

x  Double
The argument, which must be greater than or equal to -1/e.

Return Value

Double
The value W(x).

Remarks

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.

Exceptions

ArgumentOutOfRangeExceptionx is less than -1/e.

See Also