From 45d0276adefcecd43b7be44a47fca4293f0e322f Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Sun, 3 Feb 2008 17:32:48 +0100 Subject: [PATCH] Make the cutoff constant really constant. --- qscale.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qscale.c b/qscale.c index 1b3ab57..54985cc 100644 --- a/qscale.c +++ b/qscale.c @@ -9,8 +9,7 @@ double sinc(double x) { - static const double eps = 2.22045e-016; - static const double cutoff = sqrt(sqrt(eps)); + static const double cutoff = 1.220703668e-4; // sqrt(sqrt(eps)) if (abs(x) < cutoff) { // For small |x|, use Taylor series instead -- 2.39.2