xref: /freebsd/lib/msun/man/cos.3 (revision d2034aedc1d28ea7495b2ee3f7dcc946ef5fb308)
13a8617a8SJordan K. Hubbard.\" Copyright (c) 1991 The Regents of the University of California.
23a8617a8SJordan K. Hubbard.\" All rights reserved.
33a8617a8SJordan K. Hubbard.\"
43a8617a8SJordan K. Hubbard.\" Redistribution and use in source and binary forms, with or without
53a8617a8SJordan K. Hubbard.\" modification, are permitted provided that the following conditions
63a8617a8SJordan K. Hubbard.\" are met:
73a8617a8SJordan K. Hubbard.\" 1. Redistributions of source code must retain the above copyright
83a8617a8SJordan K. Hubbard.\"    notice, this list of conditions and the following disclaimer.
93a8617a8SJordan K. Hubbard.\" 2. Redistributions in binary form must reproduce the above copyright
103a8617a8SJordan K. Hubbard.\"    notice, this list of conditions and the following disclaimer in the
113a8617a8SJordan K. Hubbard.\"    documentation and/or other materials provided with the distribution.
12fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors
133a8617a8SJordan K. Hubbard.\"    may be used to endorse or promote products derived from this software
143a8617a8SJordan K. Hubbard.\"    without specific prior written permission.
153a8617a8SJordan K. Hubbard.\"
163a8617a8SJordan K. Hubbard.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
173a8617a8SJordan K. Hubbard.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
183a8617a8SJordan K. Hubbard.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
193a8617a8SJordan K. Hubbard.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
203a8617a8SJordan K. Hubbard.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
213a8617a8SJordan K. Hubbard.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
223a8617a8SJordan K. Hubbard.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
233a8617a8SJordan K. Hubbard.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
243a8617a8SJordan K. Hubbard.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
253a8617a8SJordan K. Hubbard.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
263a8617a8SJordan K. Hubbard.\" SUCH DAMAGE.
273a8617a8SJordan K. Hubbard.\"
283a8617a8SJordan K. Hubbard.\"     from: @(#)cos.3	5.1 (Berkeley) 5/2/91
297f3dea24SPeter Wemm.\" $FreeBSD$
303a8617a8SJordan K. Hubbard.\"
3153101323SWarner Losh.Dd April 1, 2020
323a8617a8SJordan K. Hubbard.Dt COS 3
333a8617a8SJordan K. Hubbard.Os
343a8617a8SJordan K. Hubbard.Sh NAME
357a15a32aSJordan K. Hubbard.Nm cos ,
36f869a8c5SDavid Schultz.Nm cosf ,
37f869a8c5SDavid Schultz.Nm cosl
387a15a32aSJordan K. Hubbard.Nd cosine functions
3964890443SBruce Evans.Sh LIBRARY
4064890443SBruce Evans.Lb libm
413a8617a8SJordan K. Hubbard.Sh SYNOPSIS
4232eef9aeSRuslan Ermilov.In math.h
433a8617a8SJordan K. Hubbard.Ft double
443a8617a8SJordan K. Hubbard.Fn cos "double x"
457a15a32aSJordan K. Hubbard.Ft float
462d2781ffSBruce Evans.Fn cosf "float x"
47018b56d6SDavid Schultz.Ft long double
48018b56d6SDavid Schultz.Fn cosl "long double x"
493a8617a8SJordan K. Hubbard.Sh DESCRIPTION
503a8617a8SJordan K. HubbardThe
51f869a8c5SDavid Schultz.Fn cos ,
52f869a8c5SDavid Schultz.Fn cosf ,
53f869a8c5SDavid Schultzand
54f869a8c5SDavid Schultz.Fn cosl
557a15a32aSJordan K. Hubbardfunctions compute the cosine of
563a8617a8SJordan K. Hubbard.Fa x
573a8617a8SJordan K. Hubbard(measured in radians).
583a8617a8SJordan K. HubbardA large magnitude argument may yield a result with little or no
593a8617a8SJordan K. Hubbardsignificance.
603a8617a8SJordan K. HubbardFor a discussion of error due to roundoff, see
613a8617a8SJordan K. Hubbard.Xr math 3 .
623a8617a8SJordan K. Hubbard.Sh RETURN VALUES
633a8617a8SJordan K. HubbardThe
64f869a8c5SDavid Schultz.Fn cos ,
65f869a8c5SDavid Schultz.Fn cosf ,
66f869a8c5SDavid Schultzand
67f869a8c5SDavid Schultz.Fn cosl
687a15a32aSJordan K. Hubbardfunctions return the cosine value.
693a8617a8SJordan K. Hubbard.Sh SEE ALSO
703a8617a8SJordan K. Hubbard.Xr acos 3 ,
7175141cc9SWolfram Schneider.Xr asin 3 ,
723a8617a8SJordan K. Hubbard.Xr atan 3 ,
733a8617a8SJordan K. Hubbard.Xr atan2 3 ,
743daee1d6SDavid Schultz.Xr ccos 3 ,
753a8617a8SJordan K. Hubbard.Xr cosh 3 ,
7675141cc9SWolfram Schneider.Xr math 3 ,
7775141cc9SWolfram Schneider.Xr sin 3 ,
7875141cc9SWolfram Schneider.Xr sinh 3 ,
7975141cc9SWolfram Schneider.Xr tan 3 ,
8075141cc9SWolfram Schneider.Xr tanh 3
813a8617a8SJordan K. Hubbard.Sh STANDARDS
82f869a8c5SDavid SchultzThese functions conform to
83f869a8c5SDavid Schultz.St -isoC-99 .
8453101323SWarner Losh.Sh HISTORY
8553101323SWarner LoshThe
86*d2034aedSSergio Carlavilla Delgado.Fn cos
8753101323SWarner Loshfunction first appeared in
8853101323SWarner Losh.At v1 .
89