lambertW: The Lambert W function

View source: R/math.R

lambertWR Documentation

The Lambert W function

Description

the Lambert W function is the inverse of f(x) = x*exp(x). The two main branches are b = 0 and b = -1.

Usage

lambertW(z, b = 0, maxiter = 10, eps = .Machine$double.eps, min.imag = 1e-09)

Arguments

z

a complex number

b

an integer, determining the branch of the W function

maxiter

maximum number of Halley iteration

eps

floating point tolerance

min.imag

floating point tolerance for imaginary part

Value

a real number of value log(a/(1-a))


wangtengyao/putils documentation built on Nov. 26, 2024, 2:01 a.m.