Developer Reference

  • 2020.2
  • 07/15/2020
  • Public Content
Contents

v?Cosd

Computes the cosine of vector elements multiplied by
π
/180.

Syntax

call vscosd
(
n
,
a
,
y
)
call vscosdi(n, a, inca, y, incy)
call vmscosd
(
n
,
a
,
y
,
mode
)
call vmscosdi(n, a, inca, y, incy, mode)
call vdcosd
(
n
,
a
,
y
)
call vdcosdi(n, a, inca, y, incy)
call vmdcosd
(
n
,
a
,
y
,
mode
)
call vmdcosdi(n, a, inca, y, incy, mode)
Include Files
  • mkl_vml.f90
Input Parameters
Name
Type
Description
n
INTEGER
Specifies the number of elements to be calculated.
a
REAL
for
vscosd
REAL
for
vmscosd
DOUBLE PRECISION
for
vdcosd
DOUBLE PRECISION
for
vmdcosd
Pointer to the array containing the input vector
a
.
inca
,
incy
INTEGER, INTENT(IN)
Specifies increments for the elements of
a
and
y
.
mode
INTEGER (KIND=8)
Overrides the global VM
mode
setting for this function call. See
vmlSetMode
for possible values and their description.
Output Parameters
Name
Type
Description
y
REAL
for
vscosd
REAL
for
vmscosd
DOUBLE PRECISION
for
vdcosd
DOUBLE PRECISION
for
vmdcosd
Pointer to an array containing the output vector
y
.
Description
The
v?Cosd
function computes the cosine of vector elements multiplied by
π
/180. For an argument
x
, the function computes cos(
π
*
x
/180).
Special values for Real Function
v?Cosd(x)
Argument
Result
VM Error Status
Exception
+0
+1
-0
+1
±
QNAN
VML_STATUS_ERRDOM
INVALID
QNAN
QNAN
SNAN
QNAN
INVALID
Application Notes
If arguments abs(
a