# Sin

Computes sine of vector elements.

## Syntax

Fortran:

call vssin( n, a, y )

call vdsin( n, a, y )

call vcsin( n, a, y )

call vzsin( n, a, y )

C:

vsSin( n, a, y );

vdSin( n, a, y );

vcSin( n, a, y );

vzSin( 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 vssin DOUBLE PRECISION, INTENT(IN) for vdsin COMPLEX, INTENT(IN) for vcsin DOUBLE PRECISION, INTENT(IN) for vzsin C: const float* for vsSin const double* for vdSin const MKL_Complex8* for vcSin const MKL_Complex16* for vzSin | 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 vssin DOUBLE PRECISION for vdsin COMPLEX for vcsin DOUBLE COMPLEX for vzsin C: float* for vsSin double* for vdSin MKL_Complex8* for vcSin MKL_Complex16* for vzSin | 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