From 6:00 PM CST Friday, Feb 15th - 2:00 AM CST Sunday, Feb 17th, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Version:

Computes the arctangent of y/x.

## Syntax

c = atan2(z)
c = atan2(y, x)

## z

Real or complex scalar or array of any dimension. atan2(z) is equivalent to atan2(real(z), imag(z)).

## y

Real or complex scalar or array of any dimension. If y is a complex matrix, MathScript ignores the imaginary part and uses only the real part to compute the arctangent.

## x

Real or complex scalar or array of any dimension. If x is a complex matrix, MathScript ignores the imaginary part and uses only the real part to compute the arctangent. x must be the same size as y.

## c

Arctangent, in radians, of the elements in x and y. c is a scalar or an array of the same size as x and y.