atan2(x, y)

Returns the arc tangent of x/y

Returns the principal value of the arc tangent of x/y, expressed in radians. To compute the value, the function uses the sign of both arguments to determine the quadrant.

Parameters

x: floating point value

y: floating point value

Return Value

the arc tangent of x/y.

Example command: atan2(.5,.5)

  • Example Parameters:
    • x is the one side of the triangle
    • y is the second side of a triangle
      • Returns atan(.5/.5) = .785