xref: /freebsd/lib/msun/man/sinpi.3 (revision 2008043f386721d58158e37e0d7e50df8095942d)
1.\" Copyright (c) 2017 Steven G. Kargl <kargl@FreeBSD.org>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\"
13.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.Dd April 1, 2017
26.Dt SINPI 3
27.Os
28.Sh NAME
29.Nm sinpi ,
30.Nm sinpif ,
31.Nm sinpil
32.Nd half\(encycle sine functions
33.Sh LIBRARY
34.Lb libm
35.Sh SYNOPSIS
36.In math.h
37.Ft double
38.Fn sinpi "double x"
39.Ft float
40.Fn sinpif "float x"
41.Ft long double
42.Fn sinpil "long double x"
43.Sh DESCRIPTION
44The
45.Fn sinpi ,
46.Fn sinpif ,
47and
48.Fn sinpil
49functions compute the sine of
50.Fa "\(*p \(mu x" .
51and measure angles in half-cycles.
52.Sh RETURN VALUES
53The
54.Fn sinpi ,
55.Fn sinpif ,
56and
57.Fn sinpil
58functions returns
59.Fn sin "\(*p \(mu x" .
60If \*(Bax\*(Ba \*(Ge 2^(p - 1)
61where p is the floating\(enpoint precision of
62.Ar x ,
63then the returned value is \*(Pm0 and it has no significance.
64.Sh SPECIAL VALUES
65.Bl -tag
66.It
67.Fn sinpi \*(Pm0
68returns \*(Pm0.
69.It
70.Fn sinpi \*(Pmn
71returns \*(Pm0 for positive integers
72.Ar n .
73.It
74.Fn sinpi \*(Pm\(if
75return an \*(Na and raises an FE_INVALID exception.
76.It
77.Fn sinpi \*(Na
78return an \*(Na and raises an FE_INVALID exception.
79.El
80.Sh SEE ALSO
81.Xr cos 3 ,
82.Xr cospi 3 ,
83.Xr fenv 3 ,
84.Xr math 3 ,
85.Xr sin 3 ,
86.Xr tan 3 ,
87.Xr tanpi 3
88.Sh AUTHORS
89The half\(encycle trignometric functions were written by
90.An Steven G. Kargl Aq Mt kargl@FreeBSD.org .
91.Sh STANDARDS
92These functions conform to
93IEEE Std 754\(tm\(en2008 ,
94\(dqIEEE Standard for Floating-Point Arithmetic\(dq
95and to
96ISO/IEC TS 18661-4 ,
97\(dqInformation technology \(em Programming languages, their environments,
98and system software interfaces \(em Floating\(enpoint extensions for
99C\(dq \(em Part 4: Supplementary functions.
100
101