commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oe...@apache.org
Subject [1/4] [math] fixed some typos in comments
Date Thu, 05 Nov 2015 20:26:17 GMT
Repository: commons-math
Updated Branches:
  refs/heads/MATH_3_X fff5c35b2 -> 8aecb842d
  refs/heads/master 23a87ac13 -> a94ff90ab


fixed some typos in comments

Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/793e9df0
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/793e9df0
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/793e9df0

Branch: refs/heads/master
Commit: 793e9df0436cefdbf523bba70ac621493ce9e649
Parents: 23a87ac
Author: Otmar Ertl <otmar.ertl@gmail.com>
Authored: Thu Nov 5 20:34:15 2015 +0100
Committer: Otmar Ertl <otmar.ertl@gmail.com>
Committed: Thu Nov 5 20:34:15 2015 +0100

----------------------------------------------------------------------
 src/main/java/org/apache/commons/math4/util/FastMath.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/793e9df0/src/main/java/org/apache/commons/math4/util/FastMath.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/util/FastMath.java b/src/main/java/org/apache/commons/math4/util/FastMath.java
index 12368a5..3d6d27d 100644
--- a/src/main/java/org/apache/commons/math4/util/FastMath.java
+++ b/src/main/java/org/apache/commons/math4/util/FastMath.java
@@ -938,13 +938,13 @@ public class FastMath {
 
         /* epsilon is the difference in x from the nearest multiple of 2^-10.  It
          * has a value in the range 0 <= epsilon < 2^-10.
-         * Do the subtraction from x as the last step to avoid possible loss of percison.
+         * Do the subtraction from x as the last step to avoid possible loss of precision.
          */
         final double epsilon = x - (intVal + intFrac / 1024.0);
 
         /* Compute z = exp(epsilon) - 1.0 via a minimax polynomial.  z has
        full double precision (52 bits).  Since z < 2^-10, we will have
-       62 bits of precision when combined with the contant 1.  This will be
+       62 bits of precision when combined with the constant 1.  This will be
        used in the last addition below to get proper rounding. */
 
         /* Remez generated polynomial.  Converges on the interval [0, 2^-10], error


Mime
View raw message