Skip to content

HFriberg/LambertW.jl-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LambertW

Build Status

This Julia package implements an approximation of the two real branches of Lambert's W function, W = W(x), defined as a solution of the equation W*exp(W) = x

The approximation is based on an iterative method.

I made this package to try out Julia, but unfortunately I did not register it before an official LambertW package occured.

Usage

To compute W_k(x), where k being either 0 or -1 denotes the branch, use

lambertw(x, k)

A third, optional argument specifies the precision which by default is eps().

References

The initial approximations are described in

  • D.A. Barry, J.-Y. Parlange, L. Li, H. Prommer, C. J. Cunningham, F. Stagnitti, "Analytical approximations for real values of the Lambert W-function", Mathematics and Computers in Simulation, volume 53, 2000, page 95--103. DOI: 10.1016/S0378-4754(00)00172-5
  • The erratum to the above article; DOI: 10.1016/S0378-4754(02)00051-4

The iterative refinement is calculated using Fritsch’s method as mentioned in e.g.

About

Lambert's W function in Julia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Julia 100.0%