double
Tanh(
x
)
Hyperbolic tangent of x.
y
=
e
x
−
e
−
x
e
x
+
e
−
x
-6.3
-5.2
-4.2
-3.1
-2.1
-1.0
0.0
1.0
2.1
3.1
4.2
5.2
6.3
-1.0
-0.6
-0.2
0.2
0.6
1.0
Example
=
Block
{
ShowTanh
(0);
ShowTanh
(
Math
.
PI
/
3);
ShowTanh
(
Math
.
PI
/
2);
};
The hyperbolic tangent of 0.00000000 is 0.00000000.
The hyperbolic tangent of 1.04719755 is 0.78071444.
The hyperbolic tangent of 1.57079633 is 0.91715234.