# Exp

Computes an exponential of vector elements.

## Syntax

Fortran:

call vsexp( n, a, y )

call vdexp( n, a, y )

call vcexp( n, a, y )

call vzexp( n, a, y )

C:

vsExp( n, a, y );

vdExp( n, a, y );

vcExp( n, a, y );

vzExp( 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 vsexp DOUBLE PRECISION, INTENT(IN) for vdexp COMPLEX, INTENT(IN) for vcexp DOUBLE COMPLEX, INTENT(IN) for vzexp C: const float* for vsExp const double* for vdExp const MKL_Complex8* for vcExp const MKL_Complex16* for vzExp | FORTRAN: Array, specifies the input vector a. C: Pointer to an array that contains the input vector a.

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

### Note

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

## Output Parameters

Name | Type | Description
--- | --- | ---
y | FORTRAN: REAL for vsexp DOUBLE PRECISION for vdexp COMPLEX for vcexp DOUBLE COMPLEX for vzexp C: float* for vsExp double* for vdExp MKL_Complex8* for vcExp MKL_Complex16* for vzExp | FORTRAN: Array, specifies the output vector y. C: Pointer to an array that contains the output vector y.

Parent topic: Exponential and Logarithmic Functions