ATAN2The ATAN2 function returns the angle between the x-axis and a line segment from the origin (0,0) to the specified coordinate pair (`x`,`y`), in radians.

Sample Usage

ATAN2(4,3)

ATAN2(A2)

Syntax

ATAN2(x,y)

x – The x coordinate of the endpoint of the line segment for which to calculate the angle from the x-axis.

y – The y coordinate of the endpoint of the line segment for which to calculate the angle from the x-axis.

Notes

Use the DEGREES function to convert the result of ATAN into degrees.

See Also

TANH: The TANH function returns the hyperbolic tangent of any real number.

TAN: The TAN function returns the tangent of an angle provided in radians.

SINH: The SINH function returns the hyperbolic sine of any real number.

SIN: The SIN function returns the sine of an angle provided in radians.

RADIANS: The RADIANS function converts an angle value in degrees to radians.

PI: The PI function returns the value of pi to 9 decimal places.

DEGREES: The DEGREES function converts an angle value in radians to degrees.

COSH: The COSH function returns the hyperbolic cosine of any real number.

COS: The COS function returns the cosine of an angle provided in radians.

ATANH: The ATANH function returns the inverse hyperbolic tangent of a number.

ATAN: The ATAN function returns the inverse tangent of a value in radians.

ASINH: The ASINH function returns the inverse hyperbolic sine of a number.

ASIN: The ASIN function returns the inverse sine of a value in radians.

ACOSH: The ACOSH function returns the inverse hyperbolic cosine of a number.

ACOS: The ACOS function returns the inverse cosine of a value in radians.

Examples