OpenBI Docs Buy

TANH

Hyperbolic tangent of the number: its hyperbolic sine divided by its hyperbolic cosine.

Group: Math. Compatible with DAX.

Syntax

TANH ( <number> )
ParameterTypeDescription
numberNumberAny number.

Returns

Number. The hyperbolic tangent of the number, between -1 and 1.

Remarks

  • It is SINH divided by COSH. For large numbers it comes so close to 1 (or -1) that it shows as 1.
  • A blank gives BLANK.
  • Its S shape makes it a smooth way to squash any number into the range from -1 to 1.

Examples

Hyperbolic tangents

EVALUATE
ROW (
    "Of 0.5", TANH ( 0.5 ),
    "Of -1", TANH ( -1 ),
    "Of 20", TANH ( 20 ),
    "Of blank", TANH ( BLANK () )
)
Of 0.5Of -1Of 20Of blank
0.46211715726001-0.7615941559557651(blank)

SINH, COSH, ATANH, COTH.

Last updated · OpenBI Studio 0.3.74