# Tanh

Computes hyperbolic tangent of vector elements.

## Syntax

Fortran:

call vstanh( n, a, y )

call vdtanh( n, a, y )

call vctanh( n, a, y )

call vztanh( n, a, y )

C:

vsTanh( n, a, y );

vdTanh( n, a, y );

vcTanh( n, a, y );

vzTanh( 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 vstanh DOUBLE PRECISION, INTENT(IN) for vdtanh COMPLEX, INTENT(IN) for vctanh DOUBLE COMPLEX, INTENT(IN) for vztanh C: const float* for vsTanh const double* for vdTanh const MKL_Complex8* for vcTanh const MKL_Complex16* for vzTanh | FORTRAN: Array, specifies the input vector a. C: Pointer to an array that contains the input vector a.

## Output Parameters

Name | Type | Description
--- | --- | ---
y | FORTRAN: REAL for vstanh DOUBLE PRECISION for vdtanh COMPLEX for cstanh DOUBLE COMPLEX for zdtanh C: float* for vsTanh double* for vdTanh MKL_Complex8* for vcTanh MKL_Complex16* for vzTanh | FORTRAN: Array, specifies the output vector y. C: Pointer to an array that contains the output vector y.

Parent topic: Hyperbolic Functions