From: sgunderson@bigfoot.com <> Date: Sun, 3 Feb 2008 16:32:48 +0000 (+0100) Subject: Make the cutoff constant really constant. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=45d0276adefcecd43b7be44a47fca4293f0e322f;p=qscale Make the cutoff constant really constant. --- 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