# Ln

Computes natural logarithm of vector elements.

## Syntax

Fortran:

call vsln( n, a, y )

call vdln( n, a, y )

call vcln( n, a, y )

call vzln( n, a, y )

C:

vsLn( n, a, y );

vdLn( n, a, y );

vcLn( n, a, y );

vzLn( 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 vsln DOUBLE PRECISION, INTENT(IN) for vdln COMPLEX, INTENT(IN) for vcln DOUBLE COMPLEX, INTENT(IN) for vzln C: const float* for vsLn const double* for vdLn const MKL_Complex8* for vcLn const MKL_Complex16* for vzLn | 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 vsln DOUBLE PRECISION for vdln COMPLEX for vcln DOUBLE COMPLEX for vzln C: float* for vsLn double* for vdLn MKL_Complex8* for vcLn MKL_Complex16* for vzLn | FORTRAN: Array, specifies the output vector y. C: Pointer to an array that contains the output vector y.

Parent topic: Exponential and Logarithmic Functions