FUNCTION REFERENCE

atan

Inverse tangent in radians.

Inverse tangent in radians.

Syntax

Y = atan(X)

Real input gives values in [-pi/2, pi/2]; complex input gives the principal

value. See atan2 for the four-quadrant form.

Example

atan(1)   % 0.7854

Example

atan(1+1i)   % 1.0172 + 0.4024i

Differences from MATLAB: double, logical and char 2-D arrays only.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.