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.