Tanh
Purpose
: Hyperbolic tangent function.
tanh( <var> )
Copied!
tanh returns hyperbolic tangent of <var>, defined as:
tanh(var) = sinh(var) / cosh(var)
Copied!
<var> is a number or a double and the result is a double.
Examples
set-double d = tanh(1) + 1
Copied!
See also
Math functions
abd
abn
acos
acosh
asin
asinh
atan
atan2
atanh
cbrt
ceil
copysign
cos
cosh
dbl
erf
erfc
exp
exp2
floor
fmod
hypot
isinf
isnan
ldexp
lgamma
log
log10
log2
math-functions
nextafter
num
pow
round
sin
sinh
sqrt
tan
tanh
trunc
See all
documentation
Copyright
(c) 2019-2025 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.