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). Interface Attribute Value 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/XCharStruct.3.html
XCharStruct(3) - load or unload fonts and font metric struct
The XLoadFont function loads the specified font and returns its associated font ID. If the font name is not in the Host Portable Character Encoding, the result
manpages/Tk_IntersectTextLayout.3.html
Tk_IntersectTextLayout(3) - routines to measure and display
These routines are for measuring and displaying single-font, multi-line, justified text. To measure and display simple single-font, single-line strings, refer t
manpages/XML::XPath::Node::Namespace.3pm.html
XML::XPath::Node::Namespace(3pm) - an XML namespace node....
new ( prefix, expanded ) Create a new namespace node, expanded is the expanded namespace URI . getPrefix Returns the prefix getExpanded Returns the expanded URI
manpages/resizepart.8.html
resizepart(8) simple wrapper around the resize partition ioc
resizepart is a program that informs the Linux kernel of new partition size. This command doesnt manipulate partitions on hard drive. PARAMETERS device Specify
manpages/XGetWMClientMachine.3.html
XGetWMClientMachine(3) - set or read a window's WM_CLIENT_MA
The XSetWMClientMachine convenience function calls XSetTextProperty to set the WM_CLIENT_MACHINE property. The XGetWMClientMachine convenience function performs
manpages/XDestroySubwindows.3.html
XDestroySubwindows(3) - destroy windows - Linux manual page
The XDestroyWindow function destroys the specified window as well as all of its subwindows and causes the X server to generate a DestroyNotify event for each wi
manpages/lwp-mirror.1.html
lwp-mirror(1) - Simple mirror utility - Linux manual page...
This program can be used to mirror a document from a WWW server. The document is only transferred if the remote copy is newer than the local copy. If the local
manpages/glIsEnabled.3gl.html
glIsEnabled(3gl) - test whether a capability is enabled.....
glIsEnabled returns GL_TRUE if cap is an enabled capability and returns GL_FALSE otherwise. Initially all capabilities except GL_DITHER are disabled; GL_DITHER
manpages/quick_halt.8.html
quick_halt(8) - stop the system quickly - Linux manual page
Fast system shutdown, that does not carefully stop every single service in the specified order, but just sends a TERM and KILL to everyone and makes sure the fi
manpages/innfeed.1.html
innfeed(1) - multi-host, multi-connection, streaming NNTP fe
Innfeed implements the NNTP protocol for transferring news between computers. It handles the standard IHAVE protocol as well as the CHECK/TAKETHIS streaming ext
manpages/watchgnupg.1.html
watchgnupg(1) - Read and print logs from a socket (ManPage)
Most of the main utilities are able to write their log files to a Unix Domain socket if configured that way. watchgnupg is a simple listener for such a socket.
manpages/chown32.2.html
chown32(2) - change ownership of a file - Linux manual page
These system calls change the owner and group of a file. The chown(), fchown(), and lchown() system calls differ only in how the file is specified: * chown() ch
