COSH

The COSH function returns the hyperbolic cosine of X .

Calling Sequence

Result = COSH( X )

Arguments

X

The value for which the hyperbolic cosine is desired, specified in radians. If X is double-precision floating, the result is also double- precision. Complex values are not allowed. All other types are converted to single-precision floating-point and yield floating-point results. COSH is defined as:

COSH( u ) = ( eu + e - u ) / 2

If X is an array, the result has the same structure, with each element containing the hyperbolic cosine of the corresponding element of X .

Example

Find the hyperbolic cosine of 0.5 radians and print the result by entering:

PRINT, COSH(.5)

IDL prints:

1.12763

See Also

ACOS , COS