summaryrefslogtreecommitdiffstats
path: root/lib/msun/src/k_cosf.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2005-11-12 19:54:45 +0000
committerbde <bde@FreeBSD.org>2005-11-12 19:54:45 +0000
commit03391287dfc6aa720f263d1842cff4f7a17579f0 (patch)
treed131ddd4ca59ec19f82a218cb550e2499e0e7a49 /lib/msun/src/k_cosf.c
parentc63892f63a40eebe2d6da65745fffa632488b489 (diff)
downloadFreeBSD-src-03391287dfc6aa720f263d1842cff4f7a17579f0.zip
FreeBSD-src-03391287dfc6aa720f263d1842cff4f7a17579f0.tar.gz
Improved comments for the minimax polynomial.
Diffstat (limited to 'lib/msun/src/k_cosf.c')
-rw-r--r--lib/msun/src/k_cosf.c8
1 files changed, 4 insertions, 4 deletions
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)
OpenPOWER on IntegriCloud