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 -width "sinpi(NaN)" 66.It Fn sinpi \*(Pm0 67returns \*(Pm0. 68.It Fn sinpi \*(Pmn 69returns \*(Pm0 for positive integers 70.Ar n . 71.It Fn sinpi \*(Pm\(if 72return an \*(Na and raises an FE_INVALID exception. 73.It Fn sinpi \*(Na 74return an \*(Na and raises an FE_INVALID exception. 75.El 76.Sh SEE ALSO 77.Xr cos 3 , 78.Xr cospi 3 , 79.Xr fenv 3 , 80.Xr math 3 , 81.Xr sin 3 , 82.Xr tan 3 , 83.Xr tanpi 3 84.Sh AUTHORS 85The half\(encycle trignometric functions were written by 86.An Steven G. Kargl Aq Mt kargl@FreeBSD.org . 87.Sh STANDARDS 88These functions conform to 89IEEE Std 754\(tm\(en2008 , 90\(dqIEEE Standard for Floating-Point Arithmetic\(dq 91and to 92ISO/IEC TS 18661-4 , 93\(dqInformation technology \(em Programming languages, their environments, 94and system software interfaces \(em Floating\(enpoint extensions for 95C\(dq \(em Part 4: Supplementary functions. 96 97