v?Expm1

Computes an exponential of vector elements decreased by 1.

Syntax

FORTRAN:

call vsexpm1( n, a, y )

call vmsexpm1( n, a, y, mode )

call vdexpm1( n, a, y )

call vdexpm1( n, a, y, mode )

C:

vsExpm1( n, a, y );

vmsExpm1( n, a, y, mode );

vdExpm1( n, a, y );

vmdExpm1( n, a, y, mode );

Include Files

Input Parameters

Name

Type

Description

n

FORTRAN 77: INTEGER

Fortran 90: INTEGER, INTENT(IN)

C: const int

Specifies the number of elements to be calculated.

a

FORTRAN 77: REAL for vsexpm1, vmsexpm1

DOUBLE PRECISION for vdexpm1, vmdexpm1

Fortran 90: REAL, INTENT(IN) for vsexpm1, vmsexpm1

DOUBLE PRECISION, INTENT(IN) for vdexpm1, vmdexpm1

C: const float* for vsExpm1, vmsExpm1

const double* for vdExpm1, vmdExpm1

FORTRAN: Array that specifies the input vector a.

C: Pointer to an array that contains the input vector a.

mode

FORTRAN 77: INTEGER*8

Fortran 90: INTEGER(KIND=8), INTENT(IN)

C: const MKL_INT64

Overrides global VML mode setting for this function call. See vmlSetMode for possible values and their description.

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

Output Parameters

Name

Type

Description

y

FORTRAN 77: REAL for vsexpm1, vmsexpm1

DOUBLE PRECISION for vdexpm1, vmdexpm1

Fortran 90: REAL, INTENT(OUT) for vsexpm1, vmsexpm1

DOUBLE PRECISION, INTENT(OUT) for vdexpm1, vmdexpm1

C: float* for vsExpm1, vmsExpm1

double* for vdExpm1, vmdExpm1

FORTRAN: Array that specifies the output vector y.

C: Pointer to an array that contains the output vector y.

Description

The v?Expm1 function computes an exponential of vector elements decreased by 1.

Special Values for Real Function v?Expm1(x)
Argument Result VML Error Status Exception
+0 +0    
-0 +0    
X > overflow + VML_STATUS_OVERFLOW OVERFLOW
+ +    
- -1    
QNAN QNAN    
SNAN QNAN   INVALID

Submit feedback on this help topic