v?Atan

Computes inverse tangent of vector elements.

Syntax

FORTRAN:

call vsatan( n, a, y )

call vmsatan( n, a, y, mode )

call vdatan( n, a, y )

call vmdatan( n, a, y, mode )

call vcatan( n, a, y )

call vmcatan( n, a, y, mode )

call vzatan( n, a, y )

call vmzatan( n, a, y, mode )

C:

vsAtan( n, a, y );

vmsAtan( n, a, y, mode );

vdAtan( n, a, y );

vmdAtan( n, a, y, mode );

vcAtan( n, a, y );

vmcAtan( n, a, y, mode );

vzAtan( n, a, y );

vmzAtan( 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 vsatan, vmsatan

DOUBLE PRECISION for vdatan, vmdatan

COMPLEX for vcatan, vmcatan

DOUBLE COMPLEX for vzatan, vmzatan

Fortran 90: REAL, INTENT(IN) for vsatan, vmsatan

DOUBLE PRECISION, INTENT(IN) for vdatan, vmdatan

COMPLEX, INTENT(IN) for vcatan, vmcatan

DOUBLE COMPLEX, INTENT(IN) for vzatan, vmzatan

C: const float* for vsAtan, vmsAtan

const double* for vdAsin, vmdAtan

const MKL_Complex8* for vcAtan, vmcAtan

const MKL_Complex16* for vzAsin, vmzAtan

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 vsatan, vmsatan

DOUBLE PRECISION for vdatan, vmdatan

COMPLEX for vcatan, vmcatan

DOUBLE COMPLEX for vzatan, vmzatan

Fortran 90: REAL, INTENT(OUT) for vsatan, vmsatan

DOUBLE PRECISION, INTENT(OUT) for vdatan, vmdatan

COMPLEX, INTENT(OUT) for vcatan, vmcatan

DOUBLE COMPLEX, INTENT(OUT) for vzatan, vmzatan

C: float* for vsAtan, vmsAtan

double* for vdAsin, vmdAtan

MKL_Complex8* for vcAtan, vmcAtan

MKL_Complex16* for vzAsin, vmzAtan

FORTRAN: Array that specifies the output vector y.

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

Description

The v?Atan function computes inverse tangent of vector elements.

Special Values for Real Function v?Atan(x)
Argument Result VML Error Status Exception
+0 +0    
-0 -0    
+ +π/2    
- -π/2    
QNAN QNAN    
SNAN QNAN   INVALID

Specifications for special values of the complex functions are defined according to the following formula

Atan(z) = -i*Atanh(i*z).


Submit feedback on this help topic