You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2011/10/10 04:33:30 UTC
svn commit: r1180764 -
/commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMathLiteralArrays.java
Author: sebb
Date: Mon Oct 10 02:33:30 2011
New Revision: 1180764
URL: http://svn.apache.org/viewvc?rev=1180764&view=rev
Log:
Recover table Javadoc lost when tables extrtacted from FastMath source file
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMathLiteralArrays.java
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMathLiteralArrays.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMathLiteralArrays.java?rev=1180764&r1=1180763&r2=1180764&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMathLiteralArrays.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMathLiteralArrays.java Mon Oct 10 02:33:30 2011
@@ -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