ATN (Arctangent)

The ATN function returns the arctangent of a number.

Syntax

ATN ( number )

Remarks

The Number argument can be any valid numeric expression.

The ATN function takes the ratio (number) of two sides of a right triangle and returns the corresponding angle. The ratio is the length of the side opposite the angle divided by the length of the side adjacent to the angle. The result is expressed in radians and is in the range -Pi/2 to Pi/2 radians. Pi is approximately 3.141593.

AngleDegrees can be used to return the result of this function in degrees instead of radians.

To convert degrees to radians, multiply degrees by Pi/180. To convert radians to degrees, multiply radians by 180/Pi.

ATN is the inverse trigonometric function of TAN, which takes an angle as its argument and returns the ratio of two sides of a right triangle. Do not confuse ATN with the cotangent, which is the simple inverse of a tangent (1/tangent).