freebsd-dev/lib/msun/man
Steve Kargl dce5f3abed [LIBM] implementations of sinpi[fl], cospi[fl], and tanpi[fl]
Both IEEE-754 2008 and ISO/IEC TS 18661-4 define the half-cycle
trignometric functions cospi, sinpi, and tanpi.  The attached
patch implements cospi[fl], sinpi[fl], and tanpi[fl].  Limited
testing on the cospi and sinpi reveal a max ULP less than 0.89;
while tanpi is more problematic with a max ULP less than 2.01
in the interval [0,0.5].  The algorithms used in these functions
are documented in {ks}_cospi.c, {ks}_sinpi.c, and s_tanpi.c.

Note.  I no longer have access to a system with ld128 and
adequate support to compile and test the ld128 implementations
of these functions.  Given the almost complete lack of input from
others on improvements to libm, I doubt that anyone cares.  If
someone does care, the ld128 files contain a number of FIXME comments,
and in particular, while the polynomial coefficients are given
I did not update the polynomial algorithms to properly use the
coefficients.

PR:	218514
MFC after:	2 weeks
2021-10-26 02:50:20 +03:00
..
acos.3 math(3): Use the .Fa macro for function arguments 2021-07-09 19:51:44 +02:00
acosh.3 math(3): Use the .Fa macro for function arguments 2021-07-09 19:51:44 +02:00
asin.3 math(3): Use the .Fa macro for function arguments 2021-07-09 19:51:44 +02:00
asinh.3 math(3): Use the .Fa macro for function arguments 2021-07-09 19:51:44 +02:00
atan2.3 math(3): Use the .Fa macro for function arguments 2021-07-09 19:51:44 +02:00
atan.3
atanh.3 math(3): Use the .Fa macro for function arguments 2021-07-09 19:51:44 +02:00
cacos.3
ccos.3 math(3): Use the .Fa macro for function arguments 2021-07-09 19:51:44 +02:00
ccosh.3 math(3): Use the .Fa macro for function arguments 2021-07-09 19:51:44 +02:00
ceil.3
cexp.3
cimag.3
clog.3
complex.3
copysign.3
cos.3 Fix typo 2020-04-04 07:43:47 +00:00
cosh.3
cospi.3 [LIBM] implementations of sinpi[fl], cospi[fl], and tanpi[fl] 2021-10-26 02:50:20 +03:00
cpow.3
csqrt.3
erf.3
exp.3 math(3): Use the .Fa macro for function arguments 2021-07-09 19:51:44 +02:00
fabs.3
fdim.3
feclearexcept.3
feenableexcept.3
fegetenv.3
fegetround.3
fenv.3
floor.3
fma.3
fmax.3
fmod.3
hypot.3
ieee_test.3
ieee.3
ilogb.3
j0.3
lgamma.3
log.3
lrint.3
lround.3
math.3
nan.3
nextafter.3
remainder.3
rint.3
round.3
scalbn.3
signbit.3
sin.3 Note some functions that appeared in First Edition Unix 2020-04-01 22:50:41 +00:00
sincos.3 math(3): Use the .Fa macro for function arguments 2021-07-09 19:51:44 +02:00
sinh.3
sinpi.3 [LIBM] implementations of sinpi[fl], cospi[fl], and tanpi[fl] 2021-10-26 02:50:20 +03:00
sqrt.3 math(3): Use the .Fa macro for function arguments 2021-07-09 19:51:44 +02:00
tan.3
tanh.3
tanpi.3 [LIBM] implementations of sinpi[fl], cospi[fl], and tanpi[fl] 2021-10-26 02:50:20 +03:00
trunc.3