commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [06/14] commons-numbers git commit: Alignment (nit-picks).
Date Thu, 01 Feb 2018 14:08:58 GMT
Alignment (nit-picks).


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

Branch: refs/heads/master
Commit: a88c7677c6f4dfcea2d8ef29f353afe3045df06a
Parents: 2daea44
Author: Gilles Sadowski <gilles@harfang.homelinux.org>
Authored: Thu Feb 1 12:56:56 2018 +0100
Committer: Gilles Sadowski <gilles@harfang.homelinux.org>
Committed: Thu Feb 1 12:56:56 2018 +0100

----------------------------------------------------------------------
 .../apache/commons/numbers/complex/Complex.java   | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/a88c7677/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
----------------------------------------------------------------------
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 7034f94..31d1cf5 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
@@ -756,17 +756,23 @@ public class Complex implements Serializable  {
     public Complex atanh(){
         if (real == 0 && Double.isNaN(imaginary)) {
             return new Complex(0, Double.NaN);
-        } else if (neitherInfiniteNorZeroNorNaN(real) && imaginary == 0) {
+        } else if (neitherInfiniteNorZeroNorNaN(real) &&
+                   imaginary == 0) {
             return new Complex(Double.POSITIVE_INFINITY, 0);
-        } else if (neitherInfiniteNorZeroNorNaN(real) && imaginary == Double.POSITIVE_INFINITY)
{
+        } else if (neitherInfiniteNorZeroNorNaN(real) &&
+                   imaginary == Double.POSITIVE_INFINITY) {
             return new Complex(0, Math.PI * 0.5);
-        } else if (real == Double.POSITIVE_INFINITY && neitherInfiniteNorZeroNorNaN(imaginary))
{
+        } else if (real == Double.POSITIVE_INFINITY &&
+                   neitherInfiniteNorZeroNorNaN(imaginary)) {
             return new Complex(0, Math.PI * 0.5);
-        } else if (real == Double.POSITIVE_INFINITY && imaginary == Double.POSITIVE_INFINITY)
{
+        } else if (real == Double.POSITIVE_INFINITY &&
+                   imaginary == Double.POSITIVE_INFINITY) {
             return new Complex(0, Math.PI * 0.5);
-        } else if (real == Double.POSITIVE_INFINITY && Double.isNaN(imaginary)) {
+        } else if (real == Double.POSITIVE_INFINITY &&
+                   Double.isNaN(imaginary)) {
             return new Complex(0, Double.NaN);
-        } else if (Double.isNaN(real) && imaginary == Double.POSITIVE_INFINITY) {
+        } else if (Double.isNaN(real) &&
+                   imaginary == Double.POSITIVE_INFINITY) {
             return new Complex(0, Math.PI * 0.5);
         }
         return this.add(Complex.ONE).divide(Complex.ONE.subtract(this)).log().divide(new
Complex(2));


Mime
View raw message