Repository: commons-math Updated Branches: refs/heads/master dc5f850d1 -> b4abfb936
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/b4abfb93 Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/b4abfb93 Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/b4abfb93 Branch: refs/heads/master Commit: b4abfb93676fb0abbab1d9bac40ba2714a3872f5 Parents: dc5f850 Author: Sebb <s...@apache.org> Authored: Tue Jan 13 01:23:51 2015 +0000 Committer: Sebb <s...@apache.org> Committed: Tue Jan 13 01:23:51 2015 +0000 ---------------------------------------------------------------------- .../commons/math3/complex/ComplexTest.java | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/b4abfb93/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 804b97e..e13b45b 100644 --- a/src/test/java/org/apache/commons/math3/complex/ComplexTest.java +++ b/src/test/java/org/apache/commons/math3/complex/ComplexTest.java @@ -796,6 +796,31 @@ public class ComplexTest { } @Test + public void testJava() {// TODO more debug + // FastMathTest#testExpSpecialCases() checks the following: + // Assert.assertEquals("exp of -infinity should be 0.0", 0.0, FastMath.exp(Double.NEGATIVE_INFINITY), Precision.EPSILON); + // Let's check how well Math works: + System.out.println("Math.exp="+Math.exp(Double.NEGATIVE_INFINITY)); + String props[] = { + "java.version", // Java Runtime Environment version + "java.vendor", // Java Runtime Environment vendor + "java.vm.specification.version", // Java Virtual Machine specification version + "java.vm.specification.vendor", // Java Virtual Machine specification vendor + "java.vm.specification.name", // Java Virtual Machine specification name + "java.vm.version", // Java Virtual Machine implementation version + "java.vm.vendor", // Java Virtual Machine implementation vendor + "java.vm.name", // Java Virtual Machine implementation name + "java.specification.version", // Java Runtime Environment specification version + "java.specification.vendor", // Java Runtime Environment specification vendor + "java.specification.name", // Java Runtime Environment specification name + "java.class.version", // Java class format version number + }; + for(String t : props) { + System.out.println(t + "=" + System.getProperty(t)); + } + } + + @Test public void testExpInf4() { // TODO: temp debug start double inf = negInfOne.getReal();