# Cosh

Computes hyperbolic cosine of vector elements.

## Syntax

Fortran:

call vscosh( n, a, y )

call vdcosh( n, a, y )

call vccosh( n, a, y )

call vzcosh( n, a, y )

C:

vsCosh( n, a, y );

vdCosh( n, a, y );

vcCosh( n, a, y );

vzCosh( n, a, y );

## Input Parameters

Name | Type | Description
--- | --- | ---
n | FORTRAN: INTEGER, INTENT(IN) C: int | Specifies the number of elements to be calculated.
a | FORTRAN: REAL, INTENT(IN) for vscosh DOUBLE PRECISION, INTENT(IN) for vdcosh COMPLEX, INTENT(IN) for vccosh DOUBLE COMPLEX, INTENT(IN) for vzcosh C: const float* for vsCosh const double* for vdCosh const MKL_Complex8* for vcCosh const MKL_Complex16* for vzCosh | FORTRAN: Array, specifies the input vector a. C: Pointer to an array that contains the input vector a.

Precision Overflow Thresholds for Cosh Real Function
Data Type | Threshold Limitations on Input Parameters
--- | ---
single precision | `-Ln(FLT_MAX)-Ln2 <a[i] < Ln(FLT_MAX)+Ln2`
double precision | `-Ln(DBL_MAX)-Ln2 <a[i] < Ln(DBL_MAX)+Ln2`

### Note

Overflow can occur also in Cosh complex function, but the exact formula is beyond the scope of this document.

## Output Parameters

Name | Type | Description
--- | --- | ---
y | FORTRAN: REAL for vscosh DOUBLE PRECISION for vdcosh COMPLEX for vccosh DOUBLE COMPLEX for vzcosh C: float* for vsCosh double* for vdCosh MKL_Complex8* for vcCosh MKL_Complex16* for vzCosh | FORTRAN: Array, specifies the output vector y. C: Pointer to an array that contains the output vector y.

Parent topic: Hyperbolic Functions