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.


icon

Inputs/Outputs

  • cdbl.png y

    y can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.

  • cdbl.png x

    x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.

  • idbl.png 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