Main index | Section 3 | 日本語 | 한국인 | Options |

Math Library (libm, -lm)

#include <math.h>

The
`cos()`,
`cosf()`,
and
`cosl()`
functions compute the cosine of
x
(measured in radians).
A large magnitude argument may yield a result with little or no
significance.
For a discussion of error due to roundoff, see
math(3).

The
`cos()`,
`cosf()`,
and
`cosl()`
functions return the cosine value.

These functions conform to
ISO/IEC 9899:1999 ("ISO C99").

The
`cos()`
function first appeared in
*AT&T v1 .*

COS (3) | April 1, 2020 |

Main index | Section 3 | 日本語 | 한국인 | Options |

Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

“ | On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. | ” |

— Charles Babbage |