C Language and Libraries Help (clang.hlp) (Table of Contents; 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.
Trigonometric Functions
 Description Example                     Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
  Include:   <math.h>
 
  Syntax:    double cos( double x );
             double sin( double x );
             double tan( double x );
 
  Returns:   (cos) the cosine of <x> if successful, or 0 if not.
             (sin) the sine of <x> if successful, or 0 if not.
             (tan) the tangent of <x> if successful, or 0 if not.
             errno: ERANGE
 
  See also:  acos, cosh, _cosl, _matherr
                                    -♦-