aboutsummaryrefslogtreecommitdiff
path: root/lib/msun/man
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msun/man')
-rw-r--r--lib/msun/man/acos.33
-rw-r--r--lib/msun/man/acosh.33
-rw-r--r--lib/msun/man/asin.33
-rw-r--r--lib/msun/man/asinh.33
-rw-r--r--lib/msun/man/atan.33
-rw-r--r--lib/msun/man/atan2.33
-rw-r--r--lib/msun/man/atanh.33
-rw-r--r--lib/msun/man/cacos.32
-rw-r--r--lib/msun/man/ccos.32
-rw-r--r--lib/msun/man/ccosh.32
-rw-r--r--lib/msun/man/ceil.33
-rw-r--r--lib/msun/man/cexp.319
-rw-r--r--lib/msun/man/cimag.32
-rw-r--r--lib/msun/man/clog.34
-rw-r--r--lib/msun/man/complex.310
-rw-r--r--lib/msun/man/copysign.33
-rw-r--r--lib/msun/man/cos.33
-rw-r--r--lib/msun/man/cosh.310
-rw-r--r--lib/msun/man/cospi.3109
-rw-r--r--lib/msun/man/cpow.31
-rw-r--r--lib/msun/man/csqrt.32
-rw-r--r--lib/msun/man/erf.33
-rw-r--r--lib/msun/man/exp.33
-rw-r--r--lib/msun/man/fabs.35
-rw-r--r--lib/msun/man/fdim.32
-rw-r--r--lib/msun/man/feclearexcept.32
-rw-r--r--lib/msun/man/feenableexcept.32
-rw-r--r--lib/msun/man/fegetenv.32
-rw-r--r--lib/msun/man/fegetround.32
-rw-r--r--lib/msun/man/fenv.32
-rw-r--r--lib/msun/man/floor.310
-rw-r--r--lib/msun/man/fma.32
-rw-r--r--lib/msun/man/fmax.32
-rw-r--r--lib/msun/man/fmod.310
-rw-r--r--lib/msun/man/hypot.33
-rw-r--r--lib/msun/man/ieee.33
-rw-r--r--lib/msun/man/ieee_test.33
-rw-r--r--lib/msun/man/ilogb.33
-rw-r--r--lib/msun/man/j0.33
-rw-r--r--lib/msun/man/lgamma.322
-rw-r--r--lib/msun/man/log.32
-rw-r--r--lib/msun/man/lrint.32
-rw-r--r--lib/msun/man/lround.32
-rw-r--r--lib/msun/man/math.33
-rw-r--r--lib/msun/man/nan.32
-rw-r--r--lib/msun/man/nextafter.33
-rw-r--r--lib/msun/man/remainder.33
-rw-r--r--lib/msun/man/rint.33
-rw-r--r--lib/msun/man/round.32
-rw-r--r--lib/msun/man/scalbn.33
-rw-r--r--lib/msun/man/signbit.32
-rw-r--r--lib/msun/man/sin.35
-rw-r--r--lib/msun/man/sincos.34
-rw-r--r--lib/msun/man/sinh.310
-rw-r--r--lib/msun/man/sinpi.3100
-rw-r--r--lib/msun/man/sqrt.33
-rw-r--r--lib/msun/man/tan.33
-rw-r--r--lib/msun/man/tanh.310
-rw-r--r--lib/msun/man/tanpi.3104
-rw-r--r--lib/msun/man/trunc.32
60 files changed, 372 insertions, 173 deletions
diff --git a/lib/msun/man/acos.3 b/lib/msun/man/acos.3
index 4e75f854c1da..e21687c1bb66 100644
--- a/lib/msun/man/acos.3
+++ b/lib/msun/man/acos.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)acos.3 5.1 (Berkeley) 5/2/91
-.\" $FreeBSD$
-.\"
.Dd July 31, 2008
.Dt ACOS 3
.Os
diff --git a/lib/msun/man/acosh.3 b/lib/msun/man/acosh.3
index c2943317573c..0268bde8e092 100644
--- a/lib/msun/man/acosh.3
+++ b/lib/msun/man/acosh.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)acosh.3 5.2 (Berkeley) 5/6/91
-.\" $FreeBSD$
-.\"
.Dd June 9, 2013
.Dt ACOSH 3
.Os
diff --git a/lib/msun/man/asin.3 b/lib/msun/man/asin.3
index 15c181bd8d1f..20dc7ac1f54c 100644
--- a/lib/msun/man/asin.3
+++ b/lib/msun/man/asin.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)asin.3 5.1 (Berkeley) 5/2/91
-.\" $FreeBSD$
-.\"
.Dd July 31, 2008
.Dt ASIN 3
.Os
diff --git a/lib/msun/man/asinh.3 b/lib/msun/man/asinh.3
index c2181dc49d32..66515fa6ac0b 100644
--- a/lib/msun/man/asinh.3
+++ b/lib/msun/man/asinh.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)asinh.3 6.4 (Berkeley) 5/6/91
-.\" $FreeBSD$
-.\"
.Dd June 9, 2013
.Dt ASINH 3
.Os
diff --git a/lib/msun/man/atan.3 b/lib/msun/man/atan.3
index 25387a6e8db7..d04787ce8bfe 100644
--- a/lib/msun/man/atan.3
+++ b/lib/msun/man/atan.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)atan.3 5.1 (Berkeley) 5/2/91
-.\" $FreeBSD$
-.\"
.Dd July 31, 2008
.Dt ATAN 3
.Os
diff --git a/lib/msun/man/atan2.3 b/lib/msun/man/atan2.3
index 307dadd1a628..df023777ce71 100644
--- a/lib/msun/man/atan2.3
+++ b/lib/msun/man/atan2.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)atan2.3 5.1 (Berkeley) 5/2/91
-.\" $FreeBSD$
-.\"
.Dd July 31, 2008
.Dt ATAN2 3
.Os
diff --git a/lib/msun/man/atanh.3 b/lib/msun/man/atanh.3
index 5984ee89337e..3fd9d2977d8f 100644
--- a/lib/msun/man/atanh.3
+++ b/lib/msun/man/atanh.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)atanh.3 5.2 (Berkeley) 5/6/91
-.\" $FreeBSD$
-.\"
.Dd June 9, 2013
.Dt ATANH 3
.Os
diff --git a/lib/msun/man/cacos.3 b/lib/msun/man/cacos.3
index ea30f9600da0..6da7e6f6a55d 100644
--- a/lib/msun/man/cacos.3
+++ b/lib/msun/man/cacos.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd February 15, 2017
.Dt CACOS 3
.Os
diff --git a/lib/msun/man/ccos.3 b/lib/msun/man/ccos.3
index 2c66b6b1b9cf..3e6cfcec73fa 100644
--- a/lib/msun/man/ccos.3
+++ b/lib/msun/man/ccos.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd October 17, 2011
.Dt CCOS 3
.Os
diff --git a/lib/msun/man/ccosh.3 b/lib/msun/man/ccosh.3
index 748b5429b072..cca8c097c4cf 100644
--- a/lib/msun/man/ccosh.3
+++ b/lib/msun/man/ccosh.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd October 17, 2011
.Dt CCOSH 3
.Os
diff --git a/lib/msun/man/ceil.3 b/lib/msun/man/ceil.3
index 1b54863f577c..9a0a5be89f64 100644
--- a/lib/msun/man/ceil.3
+++ b/lib/msun/man/ceil.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)ceil.3 5.1 (Berkeley) 5/2/91
-.\" $FreeBSD$
-.\"
.Dd January 13, 2005
.Dt CEIL 3
.Os
diff --git a/lib/msun/man/cexp.3 b/lib/msun/man/cexp.3
index 776e6cee823e..e65981e90627 100644
--- a/lib/msun/man/cexp.3
+++ b/lib/msun/man/cexp.3
@@ -22,14 +22,13 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
-.Dd March 6, 2011
+.Dd November 3, 2021
.Dt CEXP 3
.Os
.Sh NAME
.Nm cexp ,
-.Nm cexpf
+.Nm cexpf ,
+.Nm cexpl
.Nd complex exponential functions
.Sh LIBRARY
.Lb libm
@@ -39,11 +38,14 @@
.Fn cexp "double complex z"
.Ft float complex
.Fn cexpf "float complex z"
+.Ft long double complex
+.Fn cexpl "long double complex z"
.Sh DESCRIPTION
The
-.Fn cexp
+.Fn cexp ,
+.Fn cexpf ,
and
-.Fn cexpf
+.Fn cexpl
functions compute the complex exponential of
.Fa z ,
also known as
@@ -106,8 +108,9 @@ is not finite, the sign of the result is indeterminate.
.Xr math 3
.Sh STANDARDS
The
-.Fn cexp
+.Fn cexp ,
+.Fn cexpf ,
and
-.Fn cexpf
+.Fn cexpl
functions conform to
.St -isoC-99 .
diff --git a/lib/msun/man/cimag.3 b/lib/msun/man/cimag.3
index 6661ad2e908b..684040aac1aa 100644
--- a/lib/msun/man/cimag.3
+++ b/lib/msun/man/cimag.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd August 7, 2008
.Dt CIMAG 3
.Os
diff --git a/lib/msun/man/clog.3 b/lib/msun/man/clog.3
index 753ce4369993..db54e100ba78 100644
--- a/lib/msun/man/clog.3
+++ b/lib/msun/man/clog.3
@@ -22,14 +22,12 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd June 6, 2018
.Dt CLOG 3
.Os
.Sh NAME
.Nm clog ,
-.Nm clogf ,
+.Nm clogf
and
.Nm clogl
.Nd complex natural logarithm functions
diff --git a/lib/msun/man/complex.3 b/lib/msun/man/complex.3
index f1acfbe6da74..8465311e7a4b 100644
--- a/lib/msun/man/complex.3
+++ b/lib/msun/man/complex.3
@@ -22,9 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
-.Dd June 19, 2018
+.Dd November 3, 2021
.Dt COMPLEX 3
.Os
.Sh NAME
@@ -121,3 +119,9 @@ The
.In complex.h
functions described here conform to
.St -isoC-99 .
+.Sh BUGS
+The power functions,
+.Fn cpowf, cpow ,
+and
+.Fn cpowl ,
+are implemented, but the code was neither reviewed nor tested.
diff --git a/lib/msun/man/copysign.3 b/lib/msun/man/copysign.3
index 7ead165fec42..091164fbeda9 100644
--- a/lib/msun/man/copysign.3
+++ b/lib/msun/man/copysign.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91
-.\" $FreeBSD$
-.\"
.Dd January 26, 2005
.Dt COPYSIGN 3
.Os
diff --git a/lib/msun/man/cos.3 b/lib/msun/man/cos.3
index 90e0ee4066cc..4b5223b37261 100644
--- a/lib/msun/man/cos.3
+++ b/lib/msun/man/cos.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)cos.3 5.1 (Berkeley) 5/2/91
-.\" $FreeBSD$
-.\"
.Dd April 1, 2020
.Dt COS 3
.Os
diff --git a/lib/msun/man/cosh.3 b/lib/msun/man/cosh.3
index 7db64e661f07..22105f259817 100644
--- a/lib/msun/man/cosh.3
+++ b/lib/msun/man/cosh.3
@@ -25,10 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)cosh.3 5.1 (Berkeley) 5/2/91
-.\" $FreeBSD$
-.\"
-.Dd August 17, 2013
+.Dd April 3, 2022
.Dt COSH 3
.Os
.Sh NAME
@@ -71,3 +68,8 @@ The
.Fn cosh
function conforms to
.St -isoC .
+.Sh HISTORY
+The
+.Fn cosh
+function first appeared in
+.At v7 .
diff --git a/lib/msun/man/cospi.3 b/lib/msun/man/cospi.3
new file mode 100644
index 000000000000..5b33fe2555a1
--- /dev/null
+++ b/lib/msun/man/cospi.3
@@ -0,0 +1,109 @@
+.\" Copyright (c) 2017 Steven G. Kargl <kargl@FreeBSD.org>
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.Dd April 1, 2017
+.Dt COSPI 3
+.Os
+.Sh NAME
+.Nm cospi ,
+.Nm cospif ,
+.Nm cospil
+.Nd half\(encycle cosine functions
+.Sh LIBRARY
+.Lb libm
+.Sh SYNOPSIS
+.In math.h
+.Ft double
+.Fn cospi "double x"
+.Ft float
+.Fn cospif "float x"
+.Ft long double
+.Fn cospil "long double x"
+.Sh DESCRIPTION
+The
+.Fn cospi ,
+.Fn cospif ,
+and
+.Fn cospil
+functions compute the cosine of
+.Fa "\(*p \(mu x" .
+and measure angles in half-cycles.
+.Sh RETURN VALUES
+The
+.Fn cospi ,
+.Fn cospif ,
+and
+.Fn cospil
+functions returns
+.Fn cos "\(*p \(mu x" .
+If \*(Bax\*(Ba \*(Ge 2^(p - 1)
+where p is the floating\(enpoint precision of
+.Ar x ,
+then the returned value is 1 and it has no significance.
+.Sh SPECIAL VALUES
+.Bl -tag
+.It
+.Fn cospi \*(Pm0
+returns 1.
+.It
+.Fn cospi \*(Pmn/2
+returns 0 for positive integers
+.Ar n .
+.It
+.Fn cospi n
+returns 1 for even integers
+.Ar n .
+.It
+.Fn cospi n
+returns \-1 for odd integers
+.Ar n .
+.It
+.Fn cospi \*(Pm\(if
+return an \*(Na and raises an FE_INVALID exception.
+.It
+.Fn cospi \*(Na
+return an \*(Na and raises an FE_INVALID exception.
+.El
+.Sh SEE ALSO
+.Xr cos 3 ,
+.Xr fenv 3 ,
+.Xr math 3 ,
+.Xr sin 3 ,
+.Xr sinpi 3 ,
+.Xr tan 3 ,
+.Xr tanpi 3
+.Sh AUTHORS
+The half\(encycle trignometric functions were written by
+.An Steven G. Kargl Aq Mt kargl@FreeBSD.org .
+.Sh STANDARDS
+These functions conform to
+IEEE Std 754\(tm\(en2008 ,
+\(dqIEEE Standard for Floating-Point Arithmetic\(dq
+and to
+ISO/IEC TS 18661-4 ,
+\(dqInformation technology \(em Programming languages, their environments,
+and system software interfaces \(em Floating\(enpoint extensions for
+C\(dq \(em Part 4: Supplementary functions.
+
+
diff --git a/lib/msun/man/cpow.3 b/lib/msun/man/cpow.3
index 52d91cfe00f2..0faa9d57a169 100644
--- a/lib/msun/man/cpow.3
+++ b/lib/msun/man/cpow.3
@@ -11,7 +11,6 @@
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\" $FreeBSD$
.\"
.Dd $Mdocdate: June 5 2013 $
.Dt CPOW 3
diff --git a/lib/msun/man/csqrt.3 b/lib/msun/man/csqrt.3
index 6780270c89d4..a5f667c8fdd6 100644
--- a/lib/msun/man/csqrt.3
+++ b/lib/msun/man/csqrt.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd November 4, 2018
.Dt CSQRT 3
.Os
diff --git a/lib/msun/man/erf.3 b/lib/msun/man/erf.3
index 019bb35a61f4..d5be06036ce9 100644
--- a/lib/msun/man/erf.3
+++ b/lib/msun/man/erf.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)erf.3 6.4 (Berkeley) 4/20/91
-.\" $FreeBSD$
-.\"
.Dd July 13, 2014
.Dt ERF 3
.Os
diff --git a/lib/msun/man/exp.3 b/lib/msun/man/exp.3
index ee43081bad83..a94c372fa0f5 100644
--- a/lib/msun/man/exp.3
+++ b/lib/msun/man/exp.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)exp.3 6.12 (Berkeley) 7/31/91
-.\" $FreeBSD$
-.\"
.Dd April 1, 2020
.Dt EXP 3
.Os
diff --git a/lib/msun/man/fabs.3 b/lib/msun/man/fabs.3
index cf2a93ea6979..031b6aa54d18 100644
--- a/lib/msun/man/fabs.3
+++ b/lib/msun/man/fabs.3
@@ -1,7 +1,5 @@
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
-.\"
-.\" @(#)fabs.3 5.1 (Berkeley) 5/2/91
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
@@ -26,9 +24,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)fabs.3 5.1 (Berkeley) 5/2/91
-.\" $FreeBSD$
-.\"
.Dd October 25, 2003
.Dt FABS 3
.Os
diff --git a/lib/msun/man/fdim.3 b/lib/msun/man/fdim.3
index b96ba56433f9..69b01cee1018 100644
--- a/lib/msun/man/fdim.3
+++ b/lib/msun/man/fdim.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd June 29, 2004
.Dt FDIM 3
.Os
diff --git a/lib/msun/man/feclearexcept.3 b/lib/msun/man/feclearexcept.3
index 217642c858e7..e3bb2fd8842f 100644
--- a/lib/msun/man/feclearexcept.3
+++ b/lib/msun/man/feclearexcept.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd May 8, 2004
.Dt FECLEAREXCEPT 3
.Os
diff --git a/lib/msun/man/feenableexcept.3 b/lib/msun/man/feenableexcept.3
index 40bb892ebce7..db94825990a5 100644
--- a/lib/msun/man/feenableexcept.3
+++ b/lib/msun/man/feenableexcept.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd March 16, 2005
.Dt FEENABLEEXCEPT 3
.Os
diff --git a/lib/msun/man/fegetenv.3 b/lib/msun/man/fegetenv.3
index c99663ed1a4b..9e77149a6f04 100644
--- a/lib/msun/man/fegetenv.3
+++ b/lib/msun/man/fegetenv.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd May 8, 2004
.Dt FEGETENV 3
.Os
diff --git a/lib/msun/man/fegetround.3 b/lib/msun/man/fegetround.3
index c6cd417dc9ad..b41ef93322a1 100644
--- a/lib/msun/man/fegetround.3
+++ b/lib/msun/man/fegetround.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd May 8, 2004
.Dt FEGETROUND 3
.Os
diff --git a/lib/msun/man/fenv.3 b/lib/msun/man/fenv.3
index 6fee216ffbfc..ee67ef29bae1 100644
--- a/lib/msun/man/fenv.3
+++ b/lib/msun/man/fenv.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd March 16, 2005
.Dt FENV 3
.Os
diff --git a/lib/msun/man/floor.3 b/lib/msun/man/floor.3
index 67640f6f68b8..b295d013035f 100644
--- a/lib/msun/man/floor.3
+++ b/lib/msun/man/floor.3
@@ -25,10 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)floor.3 6.5 (Berkeley) 4/19/91
-.\" $FreeBSD$
-.\"
-.Dd January 13, 2005
+.Dd April 3, 2022
.Dt FLOOR 3
.Os
.Sh NAME
@@ -76,3 +73,8 @@ and
.Fn floorl
functions conform to
.St -isoC-99 .
+.Sh HISTORY
+A
+.Fn floor
+function first appeared in
+.At v5 .
diff --git a/lib/msun/man/fma.3 b/lib/msun/man/fma.3
index ce3086db8514..601982fd9ed5 100644
--- a/lib/msun/man/fma.3
+++ b/lib/msun/man/fma.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd January 22, 2005
.Dt FMA 3
.Os
diff --git a/lib/msun/man/fmax.3 b/lib/msun/man/fmax.3
index 71cb7d932f36..25fc9b6d518a 100644
--- a/lib/msun/man/fmax.3
+++ b/lib/msun/man/fmax.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd June 29, 2004
.Dt FMAX 3
.Os
diff --git a/lib/msun/man/fmod.3 b/lib/msun/man/fmod.3
index f01aa959e0c8..a7a5ae86df58 100644
--- a/lib/msun/man/fmod.3
+++ b/lib/msun/man/fmod.3
@@ -25,10 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)fmod.3 5.1 (Berkeley) 5/2/91
-.\" $FreeBSD$
-.\"
-.Dd June 19, 2008
+.Dd April 3, 2022
.Dt FMOD 3
.Os
.Sh NAME
@@ -85,3 +82,8 @@ and
.Fn fmodl
functions conform to
.St -isoC-99 .
+.Sh HISTORY
+An
+.Fn fmod
+function first appeared in
+.At v5 .
diff --git a/lib/msun/man/hypot.3 b/lib/msun/man/hypot.3
index 3a80df72530f..7b8498757955 100644
--- a/lib/msun/man/hypot.3
+++ b/lib/msun/man/hypot.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)hypot.3 6.7 (Berkeley) 5/6/91
-.\" $FreeBSD$
-.\"
.Dd March 30, 2008
.Dt HYPOT 3
.Os
diff --git a/lib/msun/man/ieee.3 b/lib/msun/man/ieee.3
index 7e7a4fdc2559..aaf73efe6bf9 100644
--- a/lib/msun/man/ieee.3
+++ b/lib/msun/man/ieee.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91
-.\" $FreeBSD$
-.\"
.Dd January 26, 2005
.Dt IEEE 3
.Os
diff --git a/lib/msun/man/ieee_test.3 b/lib/msun/man/ieee_test.3
index 7577e7ba6b78..bae704eb22df 100644
--- a/lib/msun/man/ieee_test.3
+++ b/lib/msun/man/ieee_test.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91
-.\" $FreeBSD$
-.\"
.Dd November 6, 2005
.Dt IEEE_TEST 3
.Os
diff --git a/lib/msun/man/ilogb.3 b/lib/msun/man/ilogb.3
index eaed7610796b..4d4523316afd 100644
--- a/lib/msun/man/ilogb.3
+++ b/lib/msun/man/ilogb.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91
-.\" $FreeBSD$
-.\"
.Dd December 16, 2007
.Dt ILOGB 3
.Os
diff --git a/lib/msun/man/j0.3 b/lib/msun/man/j0.3
index 38e9308fe361..a5c58f03977a 100644
--- a/lib/msun/man/j0.3
+++ b/lib/msun/man/j0.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)j0.3 6.7 (Berkeley) 4/19/91
-.\" $FreeBSD$
-.\"
.Dd March 10, 2015
.Dt J0 3
.Os
diff --git a/lib/msun/man/lgamma.3 b/lib/msun/man/lgamma.3
index 51069516db8e..41d680e41bda 100644
--- a/lib/msun/man/lgamma.3
+++ b/lib/msun/man/lgamma.3
@@ -25,10 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)lgamma.3 6.6 (Berkeley) 12/3/92
-.\" $FreeBSD$
-.\"
-.Dd December 8, 2017
+.Dd April 12, 2024
.Dt LGAMMA 3
.Os
.Sh NAME
@@ -170,15 +167,6 @@ non-positive integers.
For large non-integer negative values,
.Fn tgamma
will underflow.
-.Sh BUGS
-To conform with newer C/C++ standards, a stub implementation for
-.Nm tgammal
-was committed to the math library, where
-.Nm tgammal
-is mapped to
-.Nm tgamma .
-Thus, the numerical accuracy is at most that of the 53-bit double
-precision implementation.
.Sh SEE ALSO
.Xr math 3
.Sh STANDARDS
@@ -215,3 +203,11 @@ The
.Fn tgamma
function appeared in
.Fx 5.0 .
+The 128-bit
+.Ft long double
+version of
+.Fn tgammal
+replaced the 80-bit stub version in
+version in
+.Fx 14.1 ,
+thanks to an appropriate implementation from Arm.
diff --git a/lib/msun/man/log.3 b/lib/msun/man/log.3
index 424b59d0703f..9afd82504017 100644
--- a/lib/msun/man/log.3
+++ b/lib/msun/man/log.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd March 22, 2020
.Dt LOG 3
.Os
diff --git a/lib/msun/man/lrint.3 b/lib/msun/man/lrint.3
index e5204353cb15..05f82974604e 100644
--- a/lib/msun/man/lrint.3
+++ b/lib/msun/man/lrint.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd January 13, 2008
.Dt LRINT 3
.Os
diff --git a/lib/msun/man/lround.3 b/lib/msun/man/lround.3
index a98229dbb3b4..2d53053d84f9 100644
--- a/lib/msun/man/lround.3
+++ b/lib/msun/man/lround.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd April 7, 2005
.Dt LROUND 3
.Os
diff --git a/lib/msun/man/math.3 b/lib/msun/man/math.3
index 83a3179b5ffd..47353298bb54 100644
--- a/lib/msun/man/math.3
+++ b/lib/msun/man/math.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)math.3 6.10 (Berkeley) 5/6/91
-.\" $FreeBSD$
-.\"
.Dd December 7, 2017
.Dt MATH 3
.Os
diff --git a/lib/msun/man/nan.3 b/lib/msun/man/nan.3
index 616264133765..3650b84df09e 100644
--- a/lib/msun/man/nan.3
+++ b/lib/msun/man/nan.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd December 16, 2007
.Dt NAN 3
.Os
diff --git a/lib/msun/man/nextafter.3 b/lib/msun/man/nextafter.3
index bce9abae4424..3282050f1d2e 100644
--- a/lib/msun/man/nextafter.3
+++ b/lib/msun/man/nextafter.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91
-.\" $FreeBSD$
-.\"
.Dd May 4, 2005
.Dt NEXTAFTER 3
.Os
diff --git a/lib/msun/man/remainder.3 b/lib/msun/man/remainder.3
index d6dcae9ec690..9c2d92f5e90c 100644
--- a/lib/msun/man/remainder.3
+++ b/lib/msun/man/remainder.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91
-.\" $FreeBSD$
-.\"
.Dd March 30, 2008
.Dt REMAINDER 3
.Os
diff --git a/lib/msun/man/rint.3 b/lib/msun/man/rint.3
index 548e96d3836a..399a0720b324 100644
--- a/lib/msun/man/rint.3
+++ b/lib/msun/man/rint.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)rint.3 5.1 (Berkeley) 5/2/91
-.\" $FreeBSD$
-.\"
.Dd January 13, 2008
.Dt RINT 3
.Os
diff --git a/lib/msun/man/round.3 b/lib/msun/man/round.3
index 24b3970c8245..b63a9f6ce7a5 100644
--- a/lib/msun/man/round.3
+++ b/lib/msun/man/round.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd April 7, 2005
.Dt ROUND 3
.Os
diff --git a/lib/msun/man/scalbn.3 b/lib/msun/man/scalbn.3
index e73abaa55880..9b14e1fcb3d4 100644
--- a/lib/msun/man/scalbn.3
+++ b/lib/msun/man/scalbn.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91
-.\" $FreeBSD$
-.\"
.Dd March 4, 2005
.Dt SCALBN 3
.Os
diff --git a/lib/msun/man/signbit.3 b/lib/msun/man/signbit.3
index dd0a39fcee15..b90c338b1c01 100644
--- a/lib/msun/man/signbit.3
+++ b/lib/msun/man/signbit.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd July 18, 2004
.Dt SIGNBIT 3
.Os
diff --git a/lib/msun/man/sin.3 b/lib/msun/man/sin.3
index 36648aebc441..376fc706dd2b 100644
--- a/lib/msun/man/sin.3
+++ b/lib/msun/man/sin.3
@@ -1,7 +1,5 @@
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
-.\"
-.\" @(#)sin.3 6.7 (Berkeley) 4/19/91
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
@@ -26,9 +24,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)sin.3 6.7 (Berkeley) 4/19/91
-.\" $FreeBSD$
-.\"
.Dd April 1, 2020
.Dt SIN 3
.Os
diff --git a/lib/msun/man/sincos.3 b/lib/msun/man/sincos.3
index eecccf3cf37a..0a9f20e60d55 100644
--- a/lib/msun/man/sincos.3
+++ b/lib/msun/man/sincos.3
@@ -21,8 +21,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd March 12, 2011
.Dt SINCOS 3
.Os
@@ -76,7 +74,7 @@ are assigned the values of sine and cosine, respectively.
.Xr sin 3
.Sh HISTORY
These functions were added to
-.Fx 9.0
+.Fx 11.2
to aid in writing various complex function contained in
.St -isoC-99 .
diff --git a/lib/msun/man/sinh.3 b/lib/msun/man/sinh.3
index 96fa280f958e..7fb928028371 100644
--- a/lib/msun/man/sinh.3
+++ b/lib/msun/man/sinh.3
@@ -25,10 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)sinh.3 6.6 (Berkeley) 4/19/91
-.\" $FreeBSD$
-.\"
-.Dd August 17, 2013
+.Dd April 3, 2022
.Dt SINH 3
.Os
.Sh NAME
@@ -71,3 +68,8 @@ The
.Fn sinh
function conforms to
.St -isoC .
+.Sh HISTORY
+The
+.Fn sinh
+function first appeared in
+.At v7 .
diff --git a/lib/msun/man/sinpi.3 b/lib/msun/man/sinpi.3
new file mode 100644
index 000000000000..a5f514d3979f
--- /dev/null
+++ b/lib/msun/man/sinpi.3
@@ -0,0 +1,100 @@
+.\" Copyright (c) 2017 Steven G. Kargl <kargl@FreeBSD.org>
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.Dd April 1, 2017
+.Dt SINPI 3
+.Os
+.Sh NAME
+.Nm sinpi ,
+.Nm sinpif ,
+.Nm sinpil
+.Nd half\(encycle sine functions
+.Sh LIBRARY
+.Lb libm
+.Sh SYNOPSIS
+.In math.h
+.Ft double
+.Fn sinpi "double x"
+.Ft float
+.Fn sinpif "float x"
+.Ft long double
+.Fn sinpil "long double x"
+.Sh DESCRIPTION
+The
+.Fn sinpi ,
+.Fn sinpif ,
+and
+.Fn sinpil
+functions compute the sine of
+.Fa "\(*p \(mu x" .
+and measure angles in half-cycles.
+.Sh RETURN VALUES
+The
+.Fn sinpi ,
+.Fn sinpif ,
+and
+.Fn sinpil
+functions returns
+.Fn sin "\(*p \(mu x" .
+If \*(Bax\*(Ba \*(Ge 2^(p - 1)
+where p is the floating\(enpoint precision of
+.Ar x ,
+then the returned value is \*(Pm0 and it has no significance.
+.Sh SPECIAL VALUES
+.Bl -tag
+.It
+.Fn sinpi \*(Pm0
+returns \*(Pm0.
+.It
+.Fn sinpi \*(Pmn
+returns \*(Pm0 for positive integers
+.Ar n .
+.It
+.Fn sinpi \*(Pm\(if
+return an \*(Na and raises an FE_INVALID exception.
+.It
+.Fn sinpi \*(Na
+return an \*(Na and raises an FE_INVALID exception.
+.El
+.Sh SEE ALSO
+.Xr cos 3 ,
+.Xr cospi 3 ,
+.Xr fenv 3 ,
+.Xr math 3 ,
+.Xr sin 3 ,
+.Xr tan 3 ,
+.Xr tanpi 3
+.Sh AUTHORS
+The half\(encycle trignometric functions were written by
+.An Steven G. Kargl Aq Mt kargl@FreeBSD.org .
+.Sh STANDARDS
+These functions conform to
+IEEE Std 754\(tm\(en2008 ,
+\(dqIEEE Standard for Floating-Point Arithmetic\(dq
+and to
+ISO/IEC TS 18661-4 ,
+\(dqInformation technology \(em Programming languages, their environments,
+and system software interfaces \(em Floating\(enpoint extensions for
+C\(dq \(em Part 4: Supplementary functions.
+
diff --git a/lib/msun/man/sqrt.3 b/lib/msun/man/sqrt.3
index 8214f8a2a7fb..f4a217353af0 100644
--- a/lib/msun/man/sqrt.3
+++ b/lib/msun/man/sqrt.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)sqrt.3 6.4 (Berkeley) 5/6/91
-.\" $FreeBSD$
-.\"
.Dd February 15, 2020
.Dt SQRT 3
.Os
diff --git a/lib/msun/man/tan.3 b/lib/msun/man/tan.3
index 8a173128fac5..8714d2429c2a 100644
--- a/lib/msun/man/tan.3
+++ b/lib/msun/man/tan.3
@@ -25,9 +25,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)tan.3 5.1 (Berkeley) 5/2/91
-.\" $FreeBSD$
-.\"
.Dd January 24, 2008
.Dt TAN 3
.Os
diff --git a/lib/msun/man/tanh.3 b/lib/msun/man/tanh.3
index ca59a806b132..e795d0e7eba6 100644
--- a/lib/msun/man/tanh.3
+++ b/lib/msun/man/tanh.3
@@ -25,10 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)tanh.3 5.1 (Berkeley) 5/2/91
-.\" $FreeBSD$
-.\"
-.Dd August 17, 2013
+.Dd April 3, 2022
.Dt TANH 3
.Os
.Sh NAME
@@ -80,3 +77,8 @@ The
.Fn tanh
function conforms to
.St -isoC .
+.Sh HISTORY
+The
+.Fn tanh
+function first appeared in
+.At v7 .
diff --git a/lib/msun/man/tanpi.3 b/lib/msun/man/tanpi.3
new file mode 100644
index 000000000000..2b95f5daa8b1
--- /dev/null
+++ b/lib/msun/man/tanpi.3
@@ -0,0 +1,104 @@
+.\" Copyright (c) 2017 Steven G. Kargl <kargl@FreeBSD.org>
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.Dd April 1, 2017
+.Dt TANPI 3
+.Os
+.Sh NAME
+.Nm tanpi ,
+.Nm tanpif ,
+.Nm tanpil
+.Nd half\(encycle tangent functions
+.Sh LIBRARY
+.Lb libm
+.Sh SYNOPSIS
+.In math.h
+.Ft double
+.Fn tanpi "double x"
+.Ft float
+.Fn tanpif "float x"
+.Ft long double
+.Fn tanpil "long double x"
+.Sh DESCRIPTION
+The
+.Fn tanpi ,
+.Fn tanpif ,
+and
+.Fn tanpil
+functions compute the tangent of
+.Fa "\(*p \(mu x"
+and measure angles in half-cycles.
+.Sh RETURN VALUES
+The
+.Fn tanpi ,
+.Fn tanpif ,
+and
+.Fn tanpil
+functions returns
+.Fn tan "\(*p \(mu x" .
+If \*(Bax\*(Ba \*(Ge 2^(p - 1)
+where p is the floating\(enpoint precision of
+.Ar x ,
+then the returned value is \*(Pm0 and it has no significance.
+.Sh SPECIAL VALUES
+.Bl -tag
+.It
+.Fn tanpi \*(Pm0
+returns \*(Pm0.
+.It
+.Fn tanpi \*(Pmn
+returns \*(Pm0 for positive integers
+.Ar n .
+.It
+.Fn tanpi \*(Pmn/2
+returns \*(Na for n > 0 and raises an FE_INVALID exception.
+.It
+.Fn tanpi \*(Pm\(if
+return an \*(Na and raises an FE_INVALID exception.
+.It
+.Fn tanpi \*(Na
+return an \*(Na and raises an FE_INVALID exception.
+.El
+.Sh SEE ALSO
+.Xr cos 3 ,
+.Xr cospi 3 ,
+.Xr fenv 3 ,
+.Xr math 3 ,
+.Xr sin 3 ,
+.Xr sinpi 3 ,
+.Xr tan 3
+.Sh AUTHORS
+The half\(encycle trignometric functions were written by
+.An Steven G. Kargl Aq Mt kargl@FreeBSD.org .
+.Sh STANDARDS
+These functions conform to
+IEEE Std 754\(tm\(en2008 ,
+\(dqIEEE Standard for Floating-Point Arithmetic\(dq
+and to
+ISO/IEC TS 18661-4 ,
+\(dqInformation technology \(em Programming languages, their environments,
+and system software interfaces \(em Floating\(enpoint extensions for
+C\(dq \(em Part 4: Supplementary functions.
+
+
diff --git a/lib/msun/man/trunc.3 b/lib/msun/man/trunc.3
index 7d9e82882ae6..7846dd11bc1f 100644
--- a/lib/msun/man/trunc.3
+++ b/lib/msun/man/trunc.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd April 16, 2005
.Dt TRUNC 3
.Os