cos, cosf, cosl - cosine function


   #include <math.h>

   double cos(double x);
   float cosf(float x);
   long double cosl(long double x);

   Link with -lm.

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

   cosf(), cosl():
       _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
           || /* Since glibc 2.19: */ _DEFAULT_SOURCE
           || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE


   These functions return the cosine of x, where x is given in radians.


   On success, these functions return the cosine of x.

   If x is a NaN, a NaN is returned.

   If  x is positive infinity or negative infinity, a domain error occurs,
   and a NaN is returned.


   See math_error(7) for information on how to determine whether an  error
   has occurred when calling these functions.

   The following errors can occur:

   Domain error: x is an infinity
          errno  is set to EDOM (but see BUGS).  An invalid floating-point
          exception (FE_INVALID) is raised.


   For  an  explanation  of  the  terms  used   in   this   section,   see

   │InterfaceAttributeValue   │
   │cos(), cosf(), cosl() │ Thread safety │ MT-Safe │


   C99, POSIX.1-2001, POSIX.1-2008.

   The variant returning double also conforms to SVr4, 4.3BSD.


   Before version 2.10, the glibc implementation did not set errno to EDOM
   when a domain error occurred.


   acos(3), asin(3), atan(3), atan2(3), ccos(3), sin(3), sincos(3), tan(3)


   This page is part of release 4.09 of the Linux  man-pages  project.   A
   description  of  the project, information about reporting bugs, and the
   latest    version    of    this    page,    can     be     found     at

                              2016-03-15                            COS(3)

More Linux Commands

XContextualDrawing(3) - obtain fontset information (ManPage)
The XFontsOfFontSet function returns a list of one or more XFontStructs and font names for the fonts used by the Xmb and Xwc layers for the given font set. A li

FcFreeTypeQuery(3) - compute pattern from font file (and ind
Constructs a pattern representing the idth font in file. The number of fonts in file is returned in count. VERSION Fontconfig version 2.8.0 FcFreeTypeQuery.3 (L

FcConfigGetFontDirs(3) - Get font directories (Man Page)....
Returns the list of font directories in config. This includes the configured font directories along with any directories below those in the filesystem. If confi

XtDestroyWidget(3) - create and destroy widgets (Man Page)
The XtCreateWidget function performs much of the boilerplate operations of widget creation: * Checks to see if the class_initialize procedure has been called fo

Tcl_ReadChars(3) - buffered I/O facilities using channels...
The Tcl channel mechanism provides a device-independent and platform-independent mechanism for performing buffered input and output operations on a variety of f

slk_clear_sp(3ncurses) - curses screen-pointer extension....
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

Tk_InternalBorderBottom(3) - retrieve information from Tk's
Tk_WindowId and the other names listed above are all macros that return fields from Tks local data structure for tkwin. None of these macros requires any intera

tgetstr_sp(3ncurses) - curses screen-pointer extension......
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

gnutls_x509_crt_set_serial(3) - API function (Man Page).....
This function will set the X.509 certificates serial number. Serial is not always a 32 or 64bit number. Some CAs use large serial numbers, thus it may be wise t

git-am(1) - Apply a series of patches from a mailbox........
Splits mail messages in a mailbox into commit log message, authorship information and patches, and applies them to the current branch. OPTIONS (&lt;mbox&gt;|&lt;Maildir&gt;

query_module(2) - query the kernel for various bits pertaini
Note: This system call is present only in kernels before Linux 2.6. query_module() requests information from the kernel about loadable modules. The returned inf

proxymngr(1) - proxy manager service - Linux manual page....
The proxy manager (proxymngr) is responsible for resolving requests from xfindproxy (and other similar clients), starting new proxies when appropriate, and keep

We can't live, work or learn in freedom unless the software we use is free.