The lambertw(x) function returns the value of the principal branch (k=0) of Lambert's W function, which is defined by the equation (W(x)*exp(W(x))=x. x must be a real number with x >= -exp(-1).