TANH Function (Gnumeric)
Use Gnumeric TANH for bounded nonlinear transformations, sign symmetry and a practical zero-to-100 score mapping.
Verification status: Fresh bounded Gnumeric 1.12.57 ssconvert tests; cached 1.12.62 source inspected separately; separate primary-example GUI capture below. How formula examples are checked
Exact syntax and meaning
=TANH(x)
TANH returns the hyperbolic tangent of one required real numeric argument x. It is an odd, increasing function: changing x to -x changes the sign of the result. Mathematically finite real inputs produce results strictly between -1 and 1, although finite-precision output can round to an endpoint for sufficiently large magnitude.
The preserved example =TANH(0) returns 0. At x=1 the native result is approximately 0.761594155956; at -1 it is the negative of that value. At 2 it is approximately 0.964027580076. This illustrates saturation rather than periodic oscillation. TANH is not the ordinary tangent TAN, and does not have TAN’s angle-related poles.
Advanced application: bounded score mapping
To map a dimensionless centered score x onto a zero-to-100 scale, use =50*(TANH(x)+1). For x=1 the checked result is approximately 88.079707797788; x=0 gives the midpoint 50 by the basic identity. For a worksheet, place a center value in B1, positive scale in B2 and observations in A5:A10; use =50*(TANH((A5-$B$1)/$B$2)+1) and fill down. The cell-based application is a derived example; only the literal fixture values below were executed.
The center and scale are modeling choices, not parameters estimated by TANH. Smaller scale produces faster saturation. Preserve the raw observations if the transformation is used in analysis, because saturated scores can conceal substantial differences in extreme inputs. This transformation is not automatically a probability model or a calibrated percentile.
Errors and numerical behavior
The nonnumeric text fixture returned #VALUE!. A zero scale in the application would cause division by zero before TANH is evaluated; validate it separately. Units should cancel when forming a dimensionless score. Do not apply RADIANS simply because the function name resembles a trigonometric function.
For large positive or negative inputs, additional magnitude changes can disappear in the rounded output. This is expected saturation and finite precision, not evidence that the input data are identical. Computing TANH directly also avoids manually dividing two large exponentials, which can overflow sooner than a specialized implementation.
Native examples and expected results
=TANH(0)→ 0=TANH(1)→ 0.7615941559557649=TANH(-1)→ -0.7615941559557649=TANH(2)→ 0.9640275800758169=50*(TANH(1)+1)→ 88.07970779778825=TANH("bad")→ #VALUE!
Availability, portability and evidence
The original introduction and last functioning release are not established. These examples were freshly recalculated in Gnumeric 1.12.57 on 17 October 2026. Retained 1.12.62 source, originally obtained on 13/14 October, was inspected separately; no execution of 1.12.62 is claimed. The desktop fn-math module must be available. Native output cells and formulas were independently read back and compared with Python mathematical identities to absolute/relative tolerance 1e-12. These fixture records are engine verification; a separate primary-example GUI capture appears below.
Ordinary real-number formulas have similar meanings in other spreadsheets, but identical names do not guarantee the same coercion, numerical range or error handling. The earlier comparable LibreOffice Calc 25.2 check is historical cross-program context; it is not evidence of Gnumeric execution. The fresh Gnumeric tests above supersede the earlier no-native-test status for these exact cases.
Related functions
First-party sources
Native application screenshot

Gnumeric 1.12.57, captured 17 October 2026. The selected H1 cell shows the primary example result, with its formula in the formula bar. The literal inputs are visible in the formula bar. The GUI locale was not independently recorded.