Intel® Math Kernel Library 2019 Developer Reference - Fortran
Computes the inverse cosine of vector elements divided by π.
call vsacospi (n, a, y)
call vmsacospi (n, a, y, mode)
call vdacospi (n, a, y)
call vmdacospi (n, a, y, mode)
Name |
Type |
Description |
|---|---|---|
n |
INTEGER |
Specifies the number of elements to be calculated. |
a |
REAL for vsacospi REAL for vmsacospi DOUBLE PRECISION for vdacospi DOUBLE PRECISION for vmdacospi |
Pointer to the array containing the input vector a. |
mode |
INTEGER (KIND=8) |
Overrides the global VM mode setting for this function call. See vmlSetMode for possible values and their description. |
Name |
Type |
Description |
|---|---|---|
y |
REAL for vsacospi REAL for vmsacospi DOUBLE PRECISION for vdacospi DOUBLE PRECISION for vmdacospi |
Pointer to an array containing the output vector y. |
The v?Acospi function computes the inverse cosine of vector elements divided by π. For an argument x, the function computes acos(x)/π.
See Special Value Notations for the conventions used in this table:
| Argument | Result | VM Error Status | Exception |
|---|---|---|---|
| +0 | +1/2 | ||
| -0 | +1/2 | ||
| +1 | +0 | ||
| -1 | +1 | ||
| |x| > 1 | QNAN | VML_STATUS_ERRDOM | INVALID |
| +∞ | QNAN | VML_STATUS_ERRDOM | INVALID |
| - ∞ | QNAN | VML_STATUS_ERRDOM | INVALID |
| QNAN | QNAN | ||
| SNAN | QNAN | INVALID |