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

# vvatan2(_:_:_:_:)

Calculates the arctangent of each pair of elements in two arrays of double-precision values.

## Declaration

```swift
func vvatan2(_: UnsafeMutablePointer<Double>, _: UnsafePointer<Double>, _: UnsafePointer<Double>, _: UnsafePointer<Int32>)
```

## Discussion

Discussion Parameters: The signs of both arguments are used to determine the quadrant of the calculated value. The following special values of x and y produce the given value of z:  |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  |

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