Previous Topic Next topic Print topic


TANH Function

Purpose

Returns the hyperbolic tangent of the specified arithmetic value.

Syntax

TANH(x)

Parameters

x is a floating-point value representing an angle.

Description

The TANH function returns the hyperbolic tangent of the angle x expressed in radians such that -1 ≤ TANH(x) ≤ 1.

The result has the same data type as x.

Examples

TANH(0.0)       /* returns 0.0 */

Restrictions

A TANH operation on floating-point decimal data is actually performed using the floating-point binary operation. Thus, the range of the operands and the result of the operation are limited to the ranges for floating-point binary numbers.

Previous Topic Next topic Print topic