TANH
Hyperbolic tangent of the number: its hyperbolic sine divided by its hyperbolic cosine.
Group: Math. Compatible with DAX.
Syntax
TANH ( <number> )
| Parameter | Type | Description |
|---|---|---|
number | Number | Any number. |
Returns
Number. The hyperbolic tangent of the number, between -1 and 1.
Remarks
- It is
SINHdivided byCOSH. 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.5 | Of -1 | Of 20 | Of blank |
|---|---|---|---|
| 0.46211715726001 | -0.761594155955765 | 1 | (blank) |