Th

This function returns the hyperbolic tangent of a specified number.

Syntax

th(number)

Examples

RESULT=th(0.5) : # 0.4621172

Comments

This function can be calculated by the following formula:

th(x)=(exp(2*x)+1)/(exp(2*x)-1)/2

Where exp is the exponential function.

The type of result is Double.

Associated errors

Error codeDescription
13Calculation overflow (x is too big).

See also

ach, ash, ath, ch,sh, ln, sqr.