commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [math] More debug
Date Mon, 12 Jan 2015 20:08:48 GMT
Repository: commons-math
Updated Branches:
  refs/heads/master 1325e1141 -> bae46709e


More debug

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

Branch: refs/heads/master
Commit: bae46709ecb13f80aaad0d279b3618ab83d09275
Parents: 1325e11
Author: Sebb <sebb@apache.org>
Authored: Mon Jan 12 20:08:44 2015 +0000
Committer: Sebb <sebb@apache.org>
Committed: Mon Jan 12 20:08:44 2015 +0000

----------------------------------------------------------------------
 .../java/org/apache/commons/math3/complex/ComplexTest.java    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/bae46709/src/test/java/org/apache/commons/math3/complex/ComplexTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/complex/ComplexTest.java b/src/test/java/org/apache/commons/math3/complex/ComplexTest.java
index 8387b67..ea77444 100644
--- a/src/test/java/org/apache/commons/math3/complex/ComplexTest.java
+++ b/src/test/java/org/apache/commons/math3/complex/ComplexTest.java
@@ -797,7 +797,12 @@ public class ComplexTest {
 
     @Test
     public void testExpInf4() {
-        TestUtils.assertSame(Complex.ZERO, negInfOne.exp());
+        System.out.println("expReal="+FastMath.exp(negInfOne.getReal())); // TODO temp debug
+        System.out.println("cosImag="+FastMath.cos(negInfOne.getImaginary())); // TODO temp
debug
+        System.out.println("sinImag="+FastMath.sin(negInfOne.getImaginary())); // TODO temp
debug
+        final Complex exp = negInfOne.exp();
+        System.out.println("result="+exp); // TODO temp debug
+        TestUtils.assertSame(Complex.ZERO, exp);
     }
 
     @Test


Mime
View raw message