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/feature__NUMBERS-51__field Commit: a88c7677c6f4dfcea2d8ef29f353afe3045df06a Parents: 2daea44 Author: Gilles Sadowski <gil...@harfang.homelinux.org> Authored: Thu Feb 1 12:56:56 2018 +0100 Committer: Gilles Sadowski <gil...@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));