This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Inverse tangent in radians




Y = atan(X) returns the Inverse Tangent (tan-1) of the elements of X. The atan function operates element-wise on arrays. For real elements of X, atan(X) returns values in the interval [-pi/2,pi/2]. For complex values of X, atan(X) returns complex values. All angles are in radians.


collapse all

Inverse Tangent of a Vector of Complex Values

Find the inverse tangent of the elements of vector x. The atan function acts on x element-wise.

x = [0.5i 1+3i -2.2+i];
Y = atan(x)
Y =

   0.0000 + 0.5493i   1.4615 + 0.3059i  -1.2019 + 0.1506i

Plot the Inverse Tangent Function

Plot the inverse tangent function over the interval $-20 \le x \le 20$.

x = -20:0.01:20;
grid on

Input Arguments

collapse all

X — Numeric inputnumber | vector | matrix | multidimensional array

Numeric input, specified as a number, vector, matrix, or multidimensional array.

Data Types: single | double
Complex Number Support: Yes

More About

collapse all

Inverse Tangent

The inverse tangent is defined as


See Also

| | |

Introduced before R2006a

Was this topic helpful?