---
title: "vvcosisin(_:_:_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/vvcosisin(_:_:_:)"
---

# vvcosisin(_:_:_:)

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

## Declaration

```swift
func vvcosisin(_: OpaquePointer, _: UnsafePointer<Double>, _: UnsafePointer<Int32>)
```

## Discussion

Discussion Parameters: 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

- [acos(_:)](accelerate/vforce/acos(_:)-8srk.md)
- [acos(_:)](accelerate/vforce/acos(_:)-3hl5t.md)
- [acos(_:result:)](accelerate/vforce/acos(_:result:)-3c9qz.md)
- [acos(_:result:)](accelerate/vforce/acos(_:result:)-6rc2f.md)
- [asin(_:)](accelerate/vforce/asin(_:)-454ds.md)
- [asin(_:)](accelerate/vforce/asin(_:)-8vvt1.md)
- [asin(_:result:)](accelerate/vforce/asin(_:result:)-94jmy.md)
- [asin(_:result:)](accelerate/vforce/asin(_:result:)-ooti.md)
- [atan(_:)](accelerate/vforce/atan(_:)-1ghr3.md)
- [atan(_:)](accelerate/vforce/atan(_:)-5ejvk.md)
- [atan(_:result:)](accelerate/vforce/atan(_:result:)-691jp.md)
- [atan(_:result:)](accelerate/vforce/atan(_:result:)-6bb8n.md)
- [atan2(x:y:)](accelerate/vforce/atan2(x:y:)-h54u.md)
- [atan2(x:y:)](accelerate/vforce/atan2(x:y:)-3lku3.md)
- [atan2(x:y:result:)](accelerate/vforce/atan2(x:y:result:)-184b6.md)
