From 3a63eea7d4a0dbd06e74ce7a217ece35908e9039 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Mon, 10 Oct 2011 02:33:30 +0000 Subject: [PATCH] Recover table Javadoc lost when tables extrtacted from FastMath source file git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1180764 13f79535-47bb-0310-9956-ffa450edef68 --- .../math/util/FastMathLiteralArrays.java | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/math/util/FastMathLiteralArrays.java b/src/main/java/org/apache/commons/math/util/FastMathLiteralArrays.java index 4342c9e3a..d24fc8cc5 100644 --- a/src/main/java/org/apache/commons/math/util/FastMathLiteralArrays.java +++ b/src/main/java/org/apache/commons/math/util/FastMathLiteralArrays.java @@ -23,7 +23,9 @@ package org.apache.commons.math.util; * @version $Id$ */ class FastMathLiteralArrays { - /** "EXP_INT_A" table. */ + /** Exponential evaluated at integer values, + * exp(x) = expIntTableA[x + EXP_INT_TABLE_MAX_INDEX] + expIntTableB[x+EXP_INT_TABLE_MAX_INDEX]. + */ private static final double[] EXP_INT_A = new double[] { +0.0d, Double.NaN, @@ -1527,7 +1529,9 @@ class FastMathLiteralArrays { Double.NaN, }; - /** "EXP_INT_B" table. */ + /** Exponential evaluated at integer values, + * exp(x) = expIntTableA[x + EXP_INT_TABLE_MAX_INDEX] + expIntTableB[x+EXP_INT_TABLE_MAX_INDEX] + */ private static final double[] EXP_INT_B = new double[] { +0.0d, Double.NaN, @@ -3032,7 +3036,10 @@ class FastMathLiteralArrays { }; - /** "EXP_FRAC_A" table. */ + /** Exponential over the range of 0 - 1 in increments of 2^-10 + * exp(x/1024) = expFracTableA[x] + expFracTableB[x]. + * 1024 = 2^10 + */ private static final double[] EXP_FRAC_A = new double[] { +1.0d, +1.0009770393371582d, @@ -4061,7 +4068,9 @@ class FastMathLiteralArrays { +2.7182817459106445d, }; - /** "EXP_FRAC_B" table. */ + /** Exponential over the range of 0 - 1 in increments of 2^-10 + * exp(x/1024) = expFracTableA[x] + expFracTableB[x]. + */ private static final double[] EXP_FRAC_B = new double[] { +0.0d, +1.552583321178453E-10d, @@ -5090,7 +5099,7 @@ class FastMathLiteralArrays { +8.254840070367875E-8d, }; - /** "LN_MANT" table. */ + /** Extended precision logarithm table over the range 1 - 2 in increments of 2^-10. */ private static final double[][] LN_MANT = new double[][] { {+0.0d, +0.0d, }, // 0 {+9.760860120877624E-4d, -3.903230345984362E-11d, }, // 1