From cfb6896015add82dee466c56837d03931e0a5066 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Fri, 21 Jan 2011 04:36:26 +0000 Subject: [PATCH] Typo in constant name git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1061627 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/math/util/FastMath.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/math/util/FastMath.java b/src/main/java/org/apache/commons/math/util/FastMath.java index 5dbc5f93f..cf3650677 100644 --- a/src/main/java/org/apache/commons/math/util/FastMath.java +++ b/src/main/java/org/apache/commons/math/util/FastMath.java @@ -152,7 +152,7 @@ public class FastMath { * This is used by sinQ, because its faster to do a table lookup than * a multiply in this time-critical routine */ - private static final double EIGHTHES[] = {0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1.0, 1.125, 1.25, 1.375, 1.5, 1.625}; + private static final double EIGHTHS[] = {0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1.0, 1.125, 1.25, 1.375, 1.5, 1.625}; /** Table of 2^((n+2)/3) */ private static final double CBRTTWO[] = { 0.6299605249474366, @@ -1934,7 +1934,7 @@ public class FastMath { */ private static double sinQ(double xa, double xb) { int idx = (int) ((xa * 8.0) + 0.5); - final double epsilon = xa - EIGHTHES[idx]; //idx*0.125; + final double epsilon = xa - EIGHTHS[idx]; //idx*0.125; // Table lookups final double sintA = SINE_TABLE_A[idx]; @@ -2078,7 +2078,7 @@ public class FastMath { private static double tanQ(double xa, double xb, boolean cotanFlag) { int idx = (int) ((xa * 8.0) + 0.5); - final double epsilon = xa - EIGHTHES[idx]; //idx*0.125; + final double epsilon = xa - EIGHTHS[idx]; //idx*0.125; // Table lookups final double sintA = SINE_TABLE_A[idx]; @@ -2852,8 +2852,8 @@ public class FastMath { double resultb; //result = yb + eighths[idx] + ya; - double za = EIGHTHES[idx] + ya; - double zb = -(za - EIGHTHES[idx] - ya); + double za = EIGHTHS[idx] + ya; + double zb = -(za - EIGHTHS[idx] - ya); temp = za + yb; zb += -(temp - za - yb); za = temp;