
NCL Home >
Documentation >
Functions >
General applied math
cosh
Computes the hyperbolic cosine of numeric types.
Prototype
function cosh ( value : numeric ) return_val [dimsizes(value)] : float or double
Arguments
valueOne or more values of any dimension, in radians.
Return value
Returns an array dimensioned the same as value.
The return type is floating point if the input is floating point, and double if the input is of type double.
Description
This function returns the hyperbolic cosine of each element of value. Missing values are ignored.
See Also
Examples
Example 1
f = -3.2 cosh_f = cosh(f) print(cosh_f) ; Should be 12.28665