ATAN2

ATAN2 returns a full-range (0 - 2 pi) numeric value of the arc tangent of a given ratio. The function returns values in the range of -pi to pi, depending on the signs of the arguments. The values are expressed in radians. ATAN2(n1,n2) is the same as ATAN2(n1/n2).

Use ATAN to calculate the angle value (in radians) of a specified tangent that is not a ratio.

Return Value

NUMBER

Syntax

ATAN2(n1 { , | / } n2) 

Arguments

n1 and n2 are numeric expressions for the components of the ratio.

Example

ATAN2(.3, .2) returns the value 0.98.