Lambert's W function as per the Gnu Scientific Library reference manual section 7.23. These functions are declared in header file gsl_sf_lambert.h
gsl_sf_lambert.h
lambert_W0(x, give=FALSE, strict=TRUE) lambert_Wm1(x, give=FALSE,strict=TRUE)
input: real values
Boolean with TRUE meaning to return a list of three items: the value, an estimate of the error, and a status number
TRUE
Boolean, with TRUE meaning to return NaN if status is an error
NaN
http://www.gnu.org/software/gsl
# NOT RUN { a <- runif(6) L <- lambert_W0(a) print(L*exp(L) - a) # }
Run the code above in your browser using DataCamp Workspace