commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ericbarnh...@apache.org
Subject commons-numbers git commit: NUMBERS-13: Constants declared static final
Date Wed, 19 Jul 2017 14:14:26 GMT
Repository: commons-numbers
Updated Branches:
  refs/heads/complex-dev ed7525589 -> 1087aa983


NUMBERS-13: Constants declared static final


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

Branch: refs/heads/complex-dev
Commit: 1087aa983a4f951decedd90bbe06cd6ec9e4bc9b
Parents: ed75255
Author: Eric Barnhill <ericbarnhill@apache.org>
Authored: Wed Jul 19 16:16:26 2017 +0200
Committer: Eric Barnhill <ericbarnhill@apache.org>
Committed: Wed Jul 19 16:16:26 2017 +0200

----------------------------------------------------------------------
 .../commons/numbers/complex/CStandardTest.java  | 88 ++++++++++----------
 1 file changed, 44 insertions(+), 44 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/1087aa98/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/CStandardTest.java
----------------------------------------------------------------------
diff --git a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/CStandardTest.java
b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/CStandardTest.java
index 9c178f2..dd7f02e 100644
--- a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/CStandardTest.java
+++ b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/CStandardTest.java
@@ -25,50 +25,50 @@ import org.junit.Test;
 
 public class CStandardTest {
 
-    private double inf = Double.POSITIVE_INFINITY;
-    private double negInf = Double.NEGATIVE_INFINITY;
-    private double nan = Double.NaN;
-    private double pi = Math.PI;
-    private double piOverFour = Math.PI / 4.0;
-    private double piOverTwo = Math.PI / 2.0;
-    private double threePiOverFour = 3.0*Math.PI/4.0;
-    private Complex oneOne = new Complex(1, 1);
-    private Complex oneZero = new Complex(1, 0);
-    private Complex oneInf = new Complex(1, inf);
-    private Complex oneNegInf = new Complex(1, negInf);
-    private Complex oneNaN = new Complex(1, nan);
-    private Complex zeroInf = new Complex(0, inf);
-    private Complex zeroNegInf = new Complex(0,negInf);
-    private Complex zeroNaN = new Complex(0, nan);
-    private Complex zeroPiTwo = new Complex(0.0, piOverTwo);
-    private Complex negZeroZero = new Complex(-0.0, 0);
-    private Complex negZeroNan = new Complex(-0.0, nan);
-    private Complex negI = new Complex(0.0, -1.0);
-    private Complex infOne = new Complex(inf, 1);
-    private Complex infZero = new Complex(inf, 0);
-    private Complex infNaN = new Complex(inf, nan);
-    private Complex infNegInf = new Complex(inf, negInf);
-    private Complex infInf = new Complex(inf, inf);
-    private Complex infPiTwo = new Complex(inf, piOverTwo);
-    private Complex infPiFour = new Complex(inf, piOverFour);
-    private Complex infPi = new Complex(inf, Math.PI);
-    private Complex negInfInf = new Complex(negInf, inf);
-    private Complex negInfZero = new Complex(negInf, 0);
-    private Complex negInfOne = new Complex(negInf, 1);
-    private Complex negInfNaN = new Complex(negInf, nan);
-    private Complex negInfNegInf = new Complex(negInf, negInf);
-    private Complex negInfPosInf = new Complex(negInf, inf);
-    private Complex negInfPi = new Complex(negInf, Math.PI);
-    private Complex nanInf = new Complex(nan, inf);
-    private Complex nanNegInf = new Complex(nan, negInf);
-    private Complex nanZero = new Complex(nan, 0);
-    private Complex nanOne = new Complex(nan, 1);
-    private Complex piTwoNaN = new Complex(piOverTwo, nan);
-    private Complex piNegInf = new Complex(Math.PI, negInf);
-    private Complex piTwoNegInf = new Complex(piOverTwo, negInf);
-    private Complex piTwoNegZero = new Complex(piOverTwo, -0.0);
-    private Complex threePiFourNegInf = new Complex(threePiOverFour,negInf);
-    private Complex piFourNegInf = new Complex(piOverFour, negInf);
+    private static final double inf = Double.POSITIVE_INFINITY;
+    private static final double negInf = Double.NEGATIVE_INFINITY;
+    private static final double nan = Double.NaN;
+    private static final double pi = Math.PI;
+    private static final double piOverFour = Math.PI / 4.0;
+    private static final double piOverTwo = Math.PI / 2.0;
+    private static final double threePiOverFour = 3.0*Math.PI/4.0;
+    private static final Complex oneOne = new Complex(1, 1);
+    private static final Complex oneZero = new Complex(1, 0);
+    private static final Complex oneInf = new Complex(1, inf);
+    private static final Complex oneNegInf = new Complex(1, negInf);
+    private static final Complex oneNaN = new Complex(1, nan);
+    private static final Complex zeroInf = new Complex(0, inf);
+    private static final Complex zeroNegInf = new Complex(0,negInf);
+    private static final Complex zeroNaN = new Complex(0, nan);
+    private static final Complex zeroPiTwo = new Complex(0.0, piOverTwo);
+    private static final Complex negZeroZero = new Complex(-0.0, 0);
+    private static final Complex negZeroNan = new Complex(-0.0, nan);
+    private static final Complex negI = new Complex(0.0, -1.0);
+    private static final Complex infOne = new Complex(inf, 1);
+    private static final Complex infZero = new Complex(inf, 0);
+    private static final Complex infNaN = new Complex(inf, nan);
+    private static final Complex infNegInf = new Complex(inf, negInf);
+    private static final Complex infInf = new Complex(inf, inf);
+    private static final Complex infPiTwo = new Complex(inf, piOverTwo);
+    private static final Complex infPiFour = new Complex(inf, piOverFour);
+    private static final Complex infPi = new Complex(inf, Math.PI);
+    private static final Complex negInfInf = new Complex(negInf, inf);
+    private static final Complex negInfZero = new Complex(negInf, 0);
+    private static final Complex negInfOne = new Complex(negInf, 1);
+    private static final Complex negInfNaN = new Complex(negInf, nan);
+    private static final Complex negInfNegInf = new Complex(negInf, negInf);
+    private static final Complex negInfPosInf = new Complex(negInf, inf);
+    private static final Complex negInfPi = new Complex(negInf, Math.PI);
+    private static final Complex nanInf = new Complex(nan, inf);
+    private static final Complex nanNegInf = new Complex(nan, negInf);
+    private static final Complex nanZero = new Complex(nan, 0);
+    private static final Complex nanOne = new Complex(nan, 1);
+    private static final Complex piTwoNaN = new Complex(piOverTwo, nan);
+    private static final Complex piNegInf = new Complex(Math.PI, negInf);
+    private static final Complex piTwoNegInf = new Complex(piOverTwo, negInf);
+    private static final Complex piTwoNegZero = new Complex(piOverTwo, -0.0);
+    private static final Complex threePiFourNegInf = new Complex(threePiOverFour,negInf);
+    private static final Complex piFourNegInf = new Complex(piOverFour, negInf);
     
     public void assertComplex(Complex c1, Complex c2, double realTol, double imagTol) {
         Assert.assertEquals(c1.getReal(), c2.getReal(), realTol);


Mime
View raw message