gsl (version 1.6-6)

Lambert: Lambert's W function

Description

Lambert's W function as per the Gnu Scientific Library reference manual section 7.23

Usage

lambert_W0(x, give=FALSE, strict=TRUE)
lambert_Wm1(x, give=FALSE,strict=TRUE)

Arguments

x
input: real values
give
Boolean, with TRUE meaning to return error info
strict
Boolean, with TRUE meaning to return NaN if nonzero status is returned by the GSL function (FALSE means to return the value: use with caution)

References

http://www.gnu.org/software/gsl

Examples

Run this code
a <- runif(6)
L <- lambert_W0(a)
print(L*exp(L) - a)

Run the code above in your browser using DataCamp Workspace