cosl(3)


NAME

   cos, cosf, cosl - cosine function

SYNOPSIS

   #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

DESCRIPTION

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

RETURN VALUE

   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.

ERRORS

   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.

ATTRIBUTES

   For  an  explanation  of  the  terms  used   in   this   section,   see
   attributes(7).

   ┌──────────────────────┬───────────────┬─────────┐
   │InterfaceAttributeValue   │
   ├──────────────────────┼───────────────┼─────────┤
   │cos(), cosf(), cosl() │ Thread safety │ MT-Safe │
   └──────────────────────┴───────────────┴─────────┘

CONFORMING TO

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

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

BUGS

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

SEE ALSO

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

COLOPHON

   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
   https://www.kernel.org/doc/man-pages/.

                              2016-03-15                            COS(3)


More Linux Commands

manpages/XContextualDrawing.3.html
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

manpages/FcFreeTypeQuery.3.html
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

manpages/FcConfigGetFontDirs.3.html
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

manpages/XtDestroyWidget.3.html
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

manpages/Tcl_ReadChars.3.html
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

manpages/slk_clear_sp.3ncurses.html
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

manpages/Tk_InternalBorderBottom.3.html
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

manpages/tgetstr_sp.3ncurses.html
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

manpages/gnutls_x509_crt_set_serial.3.html
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

manpages/git-am.1.html
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;

manpages/query_module.2.html
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

manpages/proxymngr.1.html
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.