tanh()
Table of Contents
Overview
The tanh() function returns the number equivalent to the hyperbolic tangent of the specified angle (in radians).
Return Type
Syntax
<variable> = <number>.tanh();
(OR)
<variable> = tanh(<number>);
Parameter | Data type | Description |
---|---|---|
<variable> | NUMBER | Variable which will contain the returned value. |
<number> | NUMBER | The number whose hyperbolic tangent value will be returned. |
Examples
number= 0.785398;
tanhValue = number.tanh(); // returns 0.6557941095069071
tanhValue = number.tanh(); // returns 0.6557941095069071