Click or drag to resize

LambertWW0 Method

Computes the principal branch (W0) of the Lambert W function for a given value.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static double W0(
	double z,
	int maxIter = 50,
	double tol = 1E-12
)

Parameters

z  Double
The input value for which to evaluate the principal branch of the Lambert W function.
maxIter  Int32  (Optional)
The maximum number of iterations to perform when refining the result. Must be positive. The default is 50.
tol  Double  (Optional)
The convergence tolerance for the iterative refinement. Must be greater than zero. The default is 1e-12.

Return Value

Double
The value of the principal branch of the Lambert W function at the specified input.
Remarks
The principal branch W0 is real-valued for z >= -1/e. For values of z < -1/e, the result may be complex or undefined. The method uses an initial approximation followed by iterative refinement to achieve the specified tolerance.
See Also