HP MLIB User's Guide Vol. 2 7th Ed.
834 HP MLIB User’s Guide
vsSinCos, vdSinCos Both sine and cosine of elements of a vector
Name vsSinCos, vdSinCos
Both sine and cosine of 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 0 <= i <= n-1
Usage VMATH:
#include <vmath.h>
void vsSinCos (int n, const float a[ ], float s [ ], float c [ ] ) ;
void vdSinCos (int n, const double a [ ], double s [ ], double c [ ] ) ;
VMATH8:
#include <vmath8.h>
void vsSinCos (long long n, const float a[ ], float s [ ], float c [ ] ) ;
void vdSinCos (long long n, const double a [ ], double s [ ], double 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.