Function peroxide::special::function::lambert_w0

source ·
pub fn lambert_w0(z: f64, mode: LambertWAccuracyMode) -> f64
Expand description

The principal branch of the Lambert W function, W_0(z).

Returns NAN if the given input is smaller than -1/e (≈ -0.36787944117144233).

Use Precise for 50 bits of accuracy and the Simple mode for only 24 bits, but with faster execution time.

Wrapper of the lambert_w_0 and sp_lambert_w_0 functions of the puruspe crate.

§Reference

Toshio Fukushima, Precise and fast computation of Lambert W function by piecewise minimax rational function approximation with variable transformation