A Robust Approximation to a Lambert-Type Function

Abstract

The function y = g(x) = log(W(ex)), where W() denotes the Lambert W function, is the solution to the equation y + ey = x. It appears in various problem situations, for instance the calculation of current-voltage curves for solar cells. A direct calculation of g(x) may be inaccurate because of arithmetic underflow or overflow. We present a simple algorithm for calculating g(x) that is robust, in that it will work for almost all x values which are representable in the arithmetic of one's chosen computer language. The algorithm does not assume that the chosen computer language implements the Lambert W function.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…