ATAN

Purpose: Calculates the trigonometric arctangent of a numeric value.

Format:     ATAN( value )

Notes:      value   must be a constant or a numeric variable name.  value   is an angle specified in radians.  To convert radians to degrees, multiply by  57.296 .  To convert degrees to radians,  multiply by   0.174533 . (See the discussion of radians under the COS  statement.)

Example:

# This script will print the arctangent of

# every 10th degree in radians.

# Start at zero degrees
deg = 0

*Repeat

# Convert to radians.
rad = deg * 0.017453

# Calculate the arctangent.
arctan = atan(rad)

# Print results one at a time.
print "The Arctangent of " deg " is " arctan
pause

deg = deg + 10
if deg < 361
goto repeat
endif

exit

See Also:  COS   SIN   TAN