Visible to Intel only — GUID: GUID-2ED0238A-11DA-41C7-977C-9545CC767BEA
Visible to Intel only — GUID: GUID-2ED0238A-11DA-41C7-977C-9545CC767BEA
v?Tand
Computes the tangent of vector elements multiplied by π/180.
Syntax
vhTand (n, a, y);
vhTandI(n, a, inca, y, incy);
vmhTand (n, a, y, mode);
vmhTandI(n, a, inca, y, incy, mode);
vsTand (n, a, y);
vsTandI(n, a, inca, y, incy);
vmsTand (n, a, y, mode);
vmsTandI(n, a, inca, y, incy, mode);
vdTand (n, a, y);
vdTandI(n, a, inca, y, incy);
vmdTand (n, a, y, mode);
vmdTandI(n, a, inca, y, incy, mode);
Include Files
- mkl.h
Input Parameters
Name |
Type |
Description |
---|---|---|
n |
const MKL_INT |
Specifies the number of elements to be calculated. |
a |
const _Float16* for vhTand const float* for vsTand const _Float16* for vmhTand const float* for vmsTand const double* for vdTand const double* for vmdTand |
Pointer to the array containing the input vector a. |
inca, incy |
const MKL_INT |
Specifies increments for the elements of a and y. |
mode |
const MKL_INT64 |
Overrides the global VM mode setting for this function call. See vmlSetMode for possible values and their description. |
Output Parameters
Name |
Type |
Description |
---|---|---|
y |
_Float16* for vhTand float* for vsTand _Float16* for vmhTand float* for vmsTand double* for vdTand double* for vmdTand |
Pointer to an array containing the output vector y. |
Description
The v?Tand function computes the tangent of vector elements multiplied by π/180. For an argument x, the function computes tan(π*x/180).
Argument | Result | VM Error Status | Exception |
---|---|---|---|
+0 | +1 | ||
-0 | +1 | ||
±∞ | QNAN | VML_STATUS_ERRDOM | INVALID |
QNAN | QNAN | ||
SNAN | QNAN | INVALID |
The copysign(x, y) function returns the first vector argument x with the sign changed to match that of the second argument y.
Application Notes
If arguments abs(ai) ≤ 2 38 for single precision or abs(ai )≤ 2 67 for double precision, they belong to the fast computational path: arguments for which VM provides the best possible performance. Avoid arguments with do not belong to the fast computational path in VM High Accuracy (HA) or Low Accuracy (LA) functions. For arguments which do not belong to the fast computational path you can use VM Enhanced Performance (EP) functions, which are fast on the entire function domain. However, these functions provide lower accuracy.