tanh
Returns the hyperbolic tangent of a number.
Keyboard Maestro: TANH
Details #
tanh(x) takes exactly one argument and returns its hyperbolic tangent, a number between -1 and 1. The argument is a plain number, not an angle.
Parameters #
Takes 1 argument.
{{ tanh(text) }}
Examples #
tanh(0)→
0round(tanh(1), 4)→
0.7616Gotchas #
Calling it with no argument or two arguments is an error:
tanh() takes 1 argument, got 2.Anything that isn't a number is an error:
tanh() needs a number, got text. Numeric text such as "0.5" is accepted.