You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by oe...@apache.org on 2015/11/05 21:26:19 UTC
[3/4] [math] fixed some typos in comments
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/69c83683
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/69c83683
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/69c83683
Branch: refs/heads/MATH_3_X
Commit: 69c83683fd59429a71009c693b6450febdfe8291
Parents: fff5c35
Author: Otmar Ertl <ot...@gmail.com>
Authored: Thu Nov 5 21:16:44 2015 +0100
Committer: Otmar Ertl <ot...@gmail.com>
Committed: Thu Nov 5 21:16:44 2015 +0100
----------------------------------------------------------------------
src/main/java/org/apache/commons/math3/util/FastMath.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-math/blob/69c83683/src/main/java/org/apache/commons/math3/util/FastMath.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math3/util/FastMath.java b/src/main/java/org/apache/commons/math3/util/FastMath.java
index 25419d1..161ad6c 100644
--- a/src/main/java/org/apache/commons/math3/util/FastMath.java
+++ b/src/main/java/org/apache/commons/math3/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