ATAN2

Description

ATAN2 returns the arctangent of the specified coordinates.

Syntax

ATAN2 ( x, y )

 

Parameter

Description

x

The x coordinate.

y

The y coordinate.

Remarks

The arctangent is the angle from the x-axis to a line with ends at the origin (0, 0) and a point with the given coordinates (x, y). The angle is returned in radians, ranging from -pi to pi excluding -pi.

Examples

This function returns 1.11:

ATAN2(3, 6)

This function returns 3.04:

ATAN2(1, .1)

 Note:

If an Invalid formula syntax warning appears, check whether the comma is set as the list separator in your regional settings on the Windows Control Panel. If a different character is set as the list separator, use this character in the above examples in place of the comma. (Windows XP: Access the Windows Control Panel and select Regional and Language Options. On the Regional Options tab page, click Customize. On the Numbers tab page, check which character is the default list separator on your computer. Use this character in the above examples instead of the comma.

Also, see

ATAN

ATANH

PI

TAN