This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git


The following commit(s) were added to refs/heads/master by this push:
     new 69cbbef  Changed multiplier to use the value 2^27 + 1 as a double.
69cbbef is described below

commit 69cbbeff0684e9874c07c4cfe6ccc14921fc7a25
Author: Alex Herbert <aherb...@apache.org>
AuthorDate: Mon Jan 27 00:22:23 2020 +0000

    Changed multiplier to use the value 2^27 + 1 as a double.
---
 .../src/main/java/org/apache/commons/numbers/complex/Complex.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
 
b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
index 7c08c18..b44bc20 100644
--- 
a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
+++ 
b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
@@ -119,7 +119,7 @@ public final class Complex implements Serializable  {
     /** The multiplier used to split the double value into hi and low parts. 
This must be odd
      * and a value of 2^s + 1 in the range {@code p/2 <= s <= p-1} where p is 
the number of
      * bits of precision of the floating point number. Here {@code s = 27}.*/
-    private static final double MULTIPLIER = (1 << 27) + 1.0;
+    private static final double MULTIPLIER = 1.34217729E8;
 
     /**
      * Crossover point to switch computation for asin/acos factor A.

Reply via email to