From 03391287dfc6aa720f263d1842cff4f7a17579f0 Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 12 Nov 2005 19:54:45 +0000 Subject: Improved comments for the minimax polynomial. --- lib/msun/src/k_cosf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/msun/src/k_cosf.c') diff --git a/lib/msun/src/k_cosf.c b/lib/msun/src/k_cosf.c index 5835b80..885af94 100644 --- a/lib/msun/src/k_cosf.c +++ b/lib/msun/src/k_cosf.c @@ -21,12 +21,12 @@ static char rcsid[] = "$FreeBSD$"; #include "math.h" #include "math_private.h" -/* Range of maximum relative error in polynomial: ~[-1.15e-10, 1.169e-10]. */ +/* |cos(x) - c(x)| < 2**-33.1 (~[-9.39e-11, 1.083e-10]). */ static const float one = 1.0, -C1 = 0xaaaaa5.0p-28, /* 0.04166664555668830871582031250 */ -C2 = -0xb60615.0p-33, /* -0.001388731063343584537506103516 */ -C3 = 0xccf47d.0p-39; /* 0.00002443254288664320483803749084 */ +C1 = 0xaaaaa5.0p-28, /* 0.041666645557 */ +C2 = -0xb60615.0p-33, /* -0.0013887310633 */ +C3 = 0xccf47d.0p-39; /* 0.000024432542887 */ float __kernel_cosf(float x, float y) -- cgit v1.1