bas7advr.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.
COS Function Details
  Syntax  Details  Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
COS returns the cosine of angle x.
 
COS(x)
    ■ The argument x can be of any numeric type.
 
Usage Notes
    ■ The cosine of an angle in a right triangle is the ratio between the
      length of the side adjacent to the angle and the length of the
      hypotenuse.
    ■ COS is calculated in single precision if the argument x is an
      integer or single-precision value. If you use any other numeric data
      type, COS is calculated in double-precision.
    ■ To convert values from degrees to radians, multiply the angle
      (in degrees) times PI/180 (or .0174532925199433) where PI = 3.141593.
    ■ To convert a radian value to degrees, multiply it by 180/PI
      (or 57.2957795130824) where PI = 3.141593.