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

# vvcospif(_:_:_:)

Calculates the cosine of pi multiplied by each element in an array of single-precision values.

## Declaration

```swift
func vvcospif(_: UnsafeMutablePointer<Float>, _: UnsafePointer<Float>, _: UnsafePointer<Int32>)
```

## Discussion

Discussion Parameters: 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]);

## 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)
