DADiSP Worksheet Functions > Function Categories > Trigonometric Functions > TANH

 

TANH

Purpose:

Calculates the hyperbolic tangent of any expression.

Syntax:

TANH(val)

val

-

A scalar, series or table.

Returns:

A scalar, series, or table.

Example:

tanh(-5..0.01..5);gridhv;griddot

 

 

image\tanhpic01.gif

 

displays the hyperbolic tangent from –5 to 5.

Example:

tanh(pi)

 

returns 0.99627208.

Example:

tanh(ln(phi))

 

returns 0.447214 or 5 / 5

Example:

tanh(-2..0.1..2)

 

returns a 41 point series.

Remarks:

The hyperbolic tangent is defined as:

 

image\tanh01.gif

 

for all complex z.

 

image\tanh02.gif

 

SETDEGREE and SETRADIAN have no effect on this function because it always operates in radians.

See Also:

ATANH

ATAN

COTH

GTANH

TAN

TRIGONOMETRIC FUNCTIONS