Choose where you’d like to start

tanh()

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>);
ParameterData typeDescription
<variable>NUMBERVariable which will contain the returned value.
<number>NUMBERThe number whose hyperbolic tangent value will be returned.

Examples

number= 0.785398;
tanhValue = number.tanh();       // returns 0.6557941095069071

Get Started Now

Execute