ATAN function

Syntax

ATAN (expression)

Description

Use the ATAN function to return the trigonometric arc-tangent of expression. expression must be a numeric value. The result is expressed in degrees. If expression evaluates to the null value, null is returned. The ATAN function is the inverse of the TAN function.

Examples

The following example prints the numeric value 135 and the angle, in degrees, that has an arc-tangent of 135:

PRINT 135, ATAN(135)

The next example finds what angle has an arc-tangent of 1:

X = ATAN(1)
PRINT 1, X

This is the program output:

135      89.5756
1        45