advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ATN Function Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 ATN(numeric-expression)
 
 Usage Notes
   ■ ATN (arctangent) is the inverse of tangent (TAN). ATN evaluates the
     ratio of two sides of a right triangle (numeric-expression) and returns
     the corresponding angle in radians. The expression evaluated is the
     ratio of the lengths of the side opposite the angle and the side
     adjacent to the angle. The arctangent is given in radians and is in the
     range -pi/2 to pi/2 radians, where pi = 3.141593 and pi/2 radians = 90
     degrees.
 
   ■ ATN is calculated in single precision if numeric-expression or angle is
     an integer or single-precision value. If you use any other numeric data
     type, they are calculated in double precision.