# Tan

Computes tangent of vector elements.

## Syntax

Fortran:

call vstan( n, a, y )

call vdtan( n, a, y )

call vctan( n, a, y )

call vztan( n, a, y )

C:

vsTan( n, a, y );

vdTan( n, a, y );

vcTan( n, a, y );

vzTan( 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 vstan DOUBLE PRECISION, INTENT(IN) for vdtan COMPLEX, INTENT(IN) for vctan DOUBLE COMPLEX, INTENT(IN) for vztan C: const float* for vsTan const double* for vdTan const MKL_Complex8* for vcTan const MKL_Complex16* for vzTan | 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 vstan DOUBLE PRECISION for vdtan COMPLEX for vctan DOUBLE COMPLEX for vztan C: float* for vsTan double* for vdTan MKL_Complex8* for vcTan MKL_Complex16* for vzTan | FORTRAN: Array, specifies the output vector y. C: Pointer to an array that contains the output vector y.

## Description

The function computes sine of vector elements.

Note that arguments `abs(a[i]) ≤ 213` and `abs(a[i]) ≤ 216` for single and double precisions respectively are called fast computational path. These are trig function arguments for which VML provides the best possible performance. For performance reasons, avoid arguments that do not belong to the fast computational path in the VML HA and LA functions. Alternatively, you can use VML EP functions that are fast on the entire function domain at the cost of accuracy.

Parent topic: Trigonometric Functions