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►
────────────────────────────────────────────────────────────────────────────
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.
See also: acos, asin, atan, atan2, matherr, sinh, tanh
-♦-