v?Log1p

Computes a natural logarithm of vector elements that are increased by 1.

Syntax

FORTRAN:

call vslog1p( n, a, y )

call vmslog1p( n, a, y, mode )

call vdlog1p( n, a, y )

call vmdlog1p( n, a, y, mode )

C:

vsLog1p( n, a, y );

vmsLog1p( n, a, y, mode );

vdLog1p( n, a, y );

vmdLog1p( 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 vslog1p, vmslog1p

DOUBLE PRECISION for vdlog1p, vmdlog1p

Fortran 90: REAL, INTENT(IN) for vslog1p, vmslog1p

DOUBLE PRECISION, INTENT(IN) for vdlog1p, vmdlog1p

C: const float* for vsLog1p, vmsLog1p

const double* for vdLog1p, vmdLog1p

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.

Output Parameters

Name

Type

Description

y

FORTRAN 77: REAL for vslog1p, vmslog1p

DOUBLE PRECISION for vdlog1p, vmdlog1p

Fortran 90: REAL, INTENT(OUT) for vslog1p, vmslog1p

DOUBLE PRECISION, INTENT(OUT) for vdlog1p, vmdlog1p

C: float* for vsLog1p, vmsLog1p

double* for vdLog1p, vmdLog1p

FORTRAN: Array that specifies the output vector y.

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

Description

The v?Log1p function computes a natural logarithm of vector elements that are increased by 1.

Special Values for Real Function v?Log1p(x)
Argument Result VML Error Status Exception
-1 - VML_STATUS_SING ZERODIVIDE
X < -1 QNAN VML_STATUS_ERRDOM INVALID
+0 +0    
-0 -0    
- QNAN VML_STATUS_ERRDOM INVALID
+ +    
QNAN QNAN    
SNAN QNAN   INVALID

Submit feedback on this help topic