Inverse Tangent (2 Input) Function
- Updated2025-07-30
- 2 minute(s) read
Computes the arctangent of y/x.
This function can compute the arctangent for angles in any of the four quadrants of the x-y plane, whereas the Inverse Tangent function computes the arctangent in only two quadrants. The connector pane displays the default data types for this polymorphic function.

Inputs/Outputs
y
—
y can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
x
—
x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
atan2(y,x)
—
atan2(y,x) is the arctangent of y and x, in radians. atan2(y,x) falls in the range [-pi, pi]. When x or y are complex, the following equation defines atan2(y,x):
|
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Mathematics\Elementary & Special Functions\Trigonometric Functions\Sine.vi
y
—
atan2(y,x)
—
