You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2011/04/27 14:26:48 UTC

svn commit: r1097094 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java

Author: erans
Date: Wed Apr 27 12:26:48 2011
New Revision: 1097094

URL: http://svn.apache.org/viewvc?rev=1097094&view=rev
Log:
Replaced "Math" with "FastMath".

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java?rev=1097094&r1=1097093&r2=1097094&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java Wed Apr 27 12:26:48 2011
@@ -1293,8 +1293,8 @@ public final class MathUtils {
     public static double reduce(double a,
                                 double period,
                                 double offset) {
-        final double p = Math.abs(period);
-        return a - p * Math.floor((a - offset) / p) - offset;
+        final double p = FastMath.abs(period);
+        return a - p * FastMath.floor((a - offset) / p) - offset;
     }
 
      /**