Atan2 - 5.2 English - 68552

AOCL API Guide (68552)

Document ID
68552
Release Date
2025-12-29
Version
5.2 English
float amd_atan2f(float x, float y)#

Computes the arc-tangent of the quotient of two single-precision values.

Parameters:
  • x – First argument.

  • y – Second argument.

Returns:

Angle in radians, using the signs of both arguments to determine the correct quadrant.

double amd_atan2(double x, double y)#

Computes the arc-tangent of the quotient of two double-precision values.

Parameters:
  • x – First argument.

  • y – Second argument.

Returns:

Angle in radians, using the signs of both arguments to determine the correct quadrant.