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.

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.

Last Modified: January 12, 2018

Computes the arctangent of one value divided by another value (**y**/**x**).

This node can compute the arctangent for angles in any of the four quadrants of the x-y plane, whereas the Inverse Tangent node computes the arctangent in only two quadrants.

An input to this operation.

This input supports scalar numbers, arrays or clusters of numbers, and arrays of clusters of numbers.

Data Type Changes on FPGA

When you add this node to a document targeted to an FPGA, this input has a default data type that uses fewer hardware resources at compile time.

Result of the operation. **atan2(y,x)** falls in the range [-pi, pi].

When
**x** or
**y** are complex, the following equation defines
**atan2(y,x)**:

$a\mathrm{tan}2(y,x)=\frac{1}{2}i\mathrm{ln}\left(\frac{i+\frac{y}{x}}{i-\frac{y}{x}}\right)$

Data Type Changes on FPGA

When you add this node to a document targeted to an FPGA, this output has a default data type that uses fewer hardware resources at compile time.