HP MLIB User's Guide Vol. 2 7th Ed.
866 HP MLIB User’s Guide
vssincos, vdsincos Both sine and cosine of the elements of a vector
Name vssincos, vdsincos
Both sine and cosine of the elements of a vector
Purpose vssincos and vdsincos calculate both the sine and cosine of vector elements:
s(i) = sin(a(i)) and
c(i) = cos(a(i)), for 1 <= i <= n
Usage The Fortran include file math.fi declares interfaces for these subroutines,
suitable for both VMATH and VMATH8. The interfaces are compatible with
Intel’s MKL VML (Vector Math Library).
SUBROUTINE vssincos(n, a, s, c)
INTEGER, INTENT(IN) :: n
REAL (KIND=4), DIMENSION(n), INTENT(IN) :: a
REAL (KIND=4), DIMENSION(n), INTENT(OUT):: s, c
SUBROUTINE vdsincos(n, a, s, c)
INTEGER, INTENT(IN) :: n
REAL (KIND=8), DIMENSION(n), INTENT(IN) :: a
REAL (KIND=8), DIMENSION(n), INTENT(OUT):: s, c
Input n Number of elements to be calculated.
a Array of length at least n, specifying the input vector.
Output s Array of length at least n, specifying the output vector
of sines.
c Array of length at least n, specifying the output vector
of cosines.