Reference Guide > C Routines > COSH Function
  

COSH Function
Calculates the hyperbolic cosine of the input variable.
enabled.
Usage
result = COSH(x)
Input Parameters
x—The angle, in radians, that is evaluated.
Returned Value
resultThe hyperbolic cosine of x.
Keywords
None.
Discussion
COSH is defined by:
cosh(x)(e x + e -x)/2
If x is of double-precision floating-point data type, or of complex type, COSH yields a result of the same type. All other data types yield a single-precision floating-point result.
If x is an array, the result of COSH has the same dimensions, with each element containing the hyperbolic cosine of the corresponding element of x.
Example
x = [0.3, 0.5, 0.7, 0.9]
PRINT, COSH(x)
; PV-WAVE prints: 1.04534      1.12763      1.25517      1.43309
See Also
COS,   SINHTANH, alibCosh
For a list of other transcendental functions, see "Transcendental Mathematical Functions".

Version 2017.1
Copyright © 2019, Rogue Wave Software, Inc. All Rights Reserved.