Contact

LAMBERTW Function (Gnumeric)

Math Beginner Gnumeric Gnumeric 1.12.44

Solve w·exp(w)=x with Gnumeric LAMBERTW. Choose the principal or lower real branch and check domain endpoints and equation residuals.

Verification status: 19 reference, boundary and advanced-check formulas were recalculated with Gnumeric 1.12.57 ssconvert. Retained native records and independent calculations were checked. Version 1.12.62 was source-checked only. How formula examples are checked

Quick answer: =LAMBERTW(1) gives 0.56714329041 in the tested Gnumeric 1.12.57 build.

Availability and version history

  • Introduced: Gnumeric 1.12.44 release notes explicitly record this function being added.
  • Supported in: Gnumeric 1.12.62; no retirement is established.
  • Scope: Desktop Gnumeric with the Mathematics plugin. English comma-separated formulas are shown.
  • Checked: October 14, 2026. Tables and the named advanced check were recalculated through 1.12.57 ssconvert. Current 1.12.62 source was inspected; the later release was not executed.

What LAMBERTW returns

LAMBERTW finds a real w satisfying w × exp(w) = x. For negative x between −1/e and zero there are two real solutions, so choosing the branch is part of the problem rather than a cosmetic option. Versioned function help.

Syntax and arguments

=LAMBERTW(x[,branch])
Argument Meaning
x Value of w × exp(w). The principal real branch accepts x ≥ −1/e.
branch Defaults to 0. Only 0 and −1 are accepted. Branch −1 requires −1/e ≤ x < 0.

Brackets mark optional arguments; do not type the brackets. Function implementation.

Reproducible examples

Ordinary results are rounded to twelve decimal places; tiny values use scientific notation. The eight reference rows were independently checked.

Formula Gnumeric 1.12.57 result
=LAMBERTW(0) 0
=LAMBERTW(1) 0.56714329041
=LAMBERTW(3) 1.049908894964
=LAMBERTW(10) 1.745528002741
=LAMBERTW(-0.25) -0.357402956181
=LAMBERTW(-0.25,-1) -2.15329236411
=LAMBERTW(2*EXP(2)) 2
=LAMBERTW(-0.1,-1) -3.577152063957

Practical worksheet

To solve w × exp(w) = 3, use =LAMBERTW(3), approximately 1.049908894964. Substituting this solution into w × exp(w) reconstructs 3. The executed residual =LAMBERTW(3)*EXP(LAMBERTW(3))-3 was approximately −4.440892098501E−16, close to zero at floating-point precision.

For x = −0.25, the principal solution is approximately −0.357402956181; branch −1 gives approximately −2.153292364110. Both solve the same equation. Choose the one consistent with the range required by your model: the principal branch has w ≥ −1, whereas the lower branch has w ≤ −1.

Advanced interpretation and checks

An equation of the form y × exp(c × y) = d can be transformed by multiplying by c: set w = c × y, then w × exp(w) = c × d. For nonzero c, an independent algebraic solution is y = LAMBERTW(c × d, branch)/c. The required real-domain and branch restrictions apply to c × d.

The table includes =LAMBERTW(2*EXP(2)), which returned 2. At x = −1/e the two branches meet at −1. Near this meeting point the inverse is sensitive to small changes in x; keep sufficient input precision rather than judging correctness solely from displayed decimals.

Boundaries and troubleshooting

Zero is allowed on the principal branch but not as a finite value on branch −1. The latter tends toward negative infinity as x approaches zero from below, and the tested exact-zero call returned #NUM!. Fractional branch labels are rejected rather than truncated. The source explicitly accommodates the rounded −1/e endpoint, matching the two tested endpoint calls.

F5 is an actually empty cell. Listed errors are native error results, not mathematical zeroes.

Formula Gnumeric 1.12.57 result
=LAMBERTW(-1/EXP(1)) -1
=LAMBERTW(-1/EXP(1),-1) -1
=LAMBERTW(-0.5) #NUM!
=LAMBERTW(0,-1) #NUM!
=LAMBERTW(1,-1) #NUM!
=LAMBERTW(1,1) #NUM!
=LAMBERTW(1,-0.5) #NUM!
=LAMBERTW("abc") #VALUE!
=LAMBERTW(F5) 0
=LAMBERTW() #N/A

Official evidence and checking scope

The retained workbook contained a deliberately stale SUM cache and an uncached SUM formula, both recalculated correctly. Native evidence covers the listed 1.12.57 cases; worksheet layouts and algebraic interpretations are independently specified explanations. Other locales, direct GUI entry and later-release output were not tested.

EXP, LOG.