Contents

vvcosisin(_:_:_:)

Calculates the cosine and sine of each element in an array of double-precision values.

Declaration

func vvcosisin(_: OpaquePointer, _: UnsafePointer<Double>, _: 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.

This function calculates the complex number on the unit circle corresponding to the angle given by each element of a vector.

The following code shows an example of using vvcosisin(_:_:_:).

On return, for each array element in y, real is the cosine of x and imag is the sine of x.

See Also

Array-Oriented Trigonometric Functions