xref: /freebsd/lib/msun/man/sin.3 (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
1.\" Copyright (c) 1991 The Regents of the University of California.
2.\" All rights reserved.
3.\" Redistribution and use in source and binary forms, with or without
4.\" modification, are permitted provided that the following conditions
5.\" are met:
6.\" 1. Redistributions of source code must retain the above copyright
7.\"    notice, this list of conditions and the following disclaimer.
8.\" 2. Redistributions in binary form must reproduce the above copyright
9.\"    notice, this list of conditions and the following disclaimer in the
10.\"    documentation and/or other materials provided with the distribution.
11.\" 3. Neither the name of the University nor the names of its contributors
12.\"    may be used to endorse or promote products derived from this software
13.\"    without specific prior written permission.
14.\"
15.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
16.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
27.Dd April 1, 2020
28.Dt SIN 3
29.Os
30.Sh NAME
31.Nm sin ,
32.Nm sinf ,
33.Nm sinl
34.Nd sine functions
35.Sh LIBRARY
36.Lb libm
37.Sh SYNOPSIS
38.In math.h
39.Ft double
40.Fn sin "double x"
41.Ft float
42.Fn sinf "float x"
43.Ft long double
44.Fn sinl "long double x"
45.Sh DESCRIPTION
46The
47.Fn sin ,
48.Fn sinf ,
49and
50.Fn sinl
51functions compute the sine of
52.Fa x
53(measured in radians).
54A large magnitude argument may yield a result with little
55or no significance.
56.Sh RETURN VALUES
57The
58.Fn sin ,
59.Fn sinf ,
60and
61.Fn sinl
62functions return the sine value.
63.Sh SEE ALSO
64.Xr acos 3 ,
65.Xr asin 3 ,
66.Xr atan 3 ,
67.Xr atan2 3 ,
68.Xr cos 3 ,
69.Xr cosh 3 ,
70.Xr csin 3 ,
71.Xr math 3 ,
72.Xr sinh 3 ,
73.Xr tan 3 ,
74.Xr tanh 3
75.Sh STANDARDS
76These functions conform to
77.St -isoC-99 .
78.Sh HISTORY
79The
80.Fn sin
81function first appeared in
82.At v1 .
83