ATAN2

The ATAN2(a1,a2) function returns the arc tangent of the expression a1/a2, where a1 and a2 are expressions.

-Π < ATAN2(a1,a2) < Π
ATAN2(a1,a2) > 0 if a1 > 0
ATAN2(a1,a2) = 0 if a1 = 0, a2 > 0
ATAN2(a1,a2) = Π if a1 = 0, a2 < 0
ATAN2(a1,a2) < 0 if a1 < 0
ABS(ATAN2(a1,a2)) = Π/2 if a2 = 0
ATAN2(a1,a2) undefined if a1 = 0, and a2 = 0

Format

ATAN2(a1,a2)

Arguments

a1 Any valid function expression.
a2 Any valid function expression.

Examples

ATAN2(a,b)

This function shows the arc tangent (in radians) of the expression a/b.