sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1535052 - in /sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis: internal/util/DoubleDouble.java math/MathFunctions.java
Date Wed, 23 Oct 2013 15:13:26 GMT
Author: desruisseaux
Date: Wed Oct 23 15:13:26 2013
New Revision: 1535052

URL: http://svn.apache.org/r1535052
Log:
Minor javadoc fixes.

Modified:
    sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/internal/util/DoubleDouble.java
    sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/math/MathFunctions.java

Modified: sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/internal/util/DoubleDouble.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/internal/util/DoubleDouble.java?rev=1535052&r1=1535051&r2=1535052&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/internal/util/DoubleDouble.java
[UTF-8] (original)
+++ sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/internal/util/DoubleDouble.java
[UTF-8] Wed Oct 23 15:13:26 2013
@@ -222,14 +222,14 @@ public final class DoubleDouble extends 
     public DoubleDouble(final double value, final double error) {
         this.value = value;
         this.error = error;
-        assert !(Math.abs(error) > Math.ulp(value)) : this; // Use ! for being tolerant
to NaN.
+        assert !(Math.abs(error) >= Math.ulp(value)) : this; // Use ! for being tolerant
to NaN.
     }
 
     /**
      * Returns a new {@code DoubleDouble} instance initialized to the conversion factor
      * from angular degrees to radians.
      *
-     * @return An instance initialize to the 0.01745329251994329576923690768488613 value.
+     * @return An instance initialized to the 0.01745329251994329576923690768488613 value.
      */
     public static DoubleDouble createDegreesToRadians() {
         return new DoubleDouble(0.01745329251994329576923690768488613, 2.9486522708701687E-19);

Modified: sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/math/MathFunctions.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/math/MathFunctions.java?rev=1535052&r1=1535051&r2=1535052&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/math/MathFunctions.java
[UTF-8] (original)
+++ sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/math/MathFunctions.java
[UTF-8] Wed Oct 23 15:13:26 2013
@@ -65,17 +65,17 @@ import static org.apache.sis.internal.ut
  */
 public final class MathFunctions extends Static {
     /**
-     * The square root of 2, which is {@value}.
+     * The square root of 2, which is approximated by {@value}.
      *
      * @see Math#sqrt(double)
      */
     public static final double SQRT_2 = 1.4142135623730951;
 
     /**
-     * The logarithm of 2 in base 10, which is {@value}.
+     * The logarithm of 2 in base 10, which is approximated by {@value}.
      *
      * @see Math#log10(double)
-     * @see #fractionDigitsForValue(double)
+     * @see #getExponent(double)
      *
      * @since 0.4
      */
@@ -243,8 +243,8 @@ public final class MathFunctions extends
      *   <li>If {@code accuracy} is {@link Double#NaN NaN} or infinity, then this method
returns 0
      *       since those values are not represented by decimal digits.</li>
      *
-     *   <li>If {@code accuracy} is 0, then this method returns 324 since 10<sup>-324</sup>
is the
-     *       first power of 10 smaller than {@link Double#MIN_VALUE}.
+     *   <li>If {@code accuracy} is 0, then this method returns 324 since 10<sup>-324</sup>
is the first power of 10
+     *       smaller than the minimal strictly positive {@code double} value ({@value java.lang.Double#MIN_VALUE}).
      *
      *       {@note The above value can be understood in an other way: if the first 324 fraction
digits are zero,
      *              then the IEEE <code>double</code> value is guaranteed to
be rounded to exactly 0 no matter



Mime
View raw message