The Lambert W function, often called the product logarithm, solves equations of the form . In other words, is the number such that equals . This special function appears in combinatorics, delay differential equations, and anywhere an unknown variable occurs both inside and outside an exponential.
The equation generally has two real solutions when lies between and . These are denoted and , representing the principal and lower branches. For greater than or equal to , only the principal branch exists. This calculator focuses on that branch, ensuring a real solution for all above .
The Lambert W function lacks a simple closed form, so numerical methods are typically used. One approach is Newton's method, which refines guesses by iterating
We start with an initial guess like when is positive. Repeated iterations quickly converge, granting a solution that solves to high precision.
The Lambert W function unravels problems that defy elementary algebra. For instance, the solution to
If , we seek satisfying . Newton's method with an initial guess of converges to . You can verify that is indeed very close to .
Type a value for above and press "Compute". The script performs Newton iterations until the change falls below a small tolerance. Results are rounded to six decimal places for readability. Try values like , , or to explore the behavior near the branch point.
Approximate solutions of symmetric positive-definite systems using the conjugate gradient algorithm.
Compute the Lagrange interpolating polynomial that passes through a set of points.
Generate Bernoulli numbers using the Akiyama-Tanigawa algorithm.