vvcospif(_:_:_:)
Calculates the cosine of pi multiplied by each element in an array of single-precision values.
Declaration
func vvcospif(_: UnsafeMutablePointer<Float>, _: UnsafePointer<Float>, _: UnsafePointer<Int32>)Discussion
Parameters:
- parameter 1
The output array, y.
- parameter 2
The input array, x.
- parameter 3
The number of elements in the arrays.
The following code shows an example of using vvcospif(_:_:_:).
float x[] = {-0.5, 0, 0.5};
float y[3];
int n = 3;
vvcospif(y, x, &n);
NSLog(@"y: [%lf, %lf, %lf]", y[0], y[1], y[2]);