You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2009/11/28 00:27:16 UTC

svn commit: r885049 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BiDiagonalTransformerTest.java

Author: luc
Date: Fri Nov 27 23:27:16 2009
New Revision: 885049

URL: http://svn.apache.org/viewvc?rev=885049&view=rev
Log:
removed an unneeded constant

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BiDiagonalTransformerTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BiDiagonalTransformerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BiDiagonalTransformerTest.java?rev=885049&r1=885048&r2=885049&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BiDiagonalTransformerTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BiDiagonalTransformerTest.java Fri Nov 27 23:27:16 2009
@@ -128,12 +128,11 @@
             }));
        final double s3  = Math.sqrt(3.0);
        final double s14 = Math.sqrt(14.0);
-       final double s42 = Math.sqrt(42.0);
        final double s1553 = Math.sqrt(1553.0);
        RealMatrix uRef = MatrixUtils.createRealMatrix(new double[][] {
-           {  -1.0 / s14,  5.0 / s42,  1.0 / s3 },
-           {  -2.0 / s14, -4.0 / s42,  1.0 / s3 },
-           {  -3.0 / s14,  1.0 / s42, -1.0 / s3 }
+           {  -1.0 / s14,  5.0 / (s3 * s14),  1.0 / s3 },
+           {  -2.0 / s14, -4.0 / (s3 * s14),  1.0 / s3 },
+           {  -3.0 / s14,  1.0 / (s3 * s14), -1.0 / s3 }
        });
        RealMatrix bRef = MatrixUtils.createRealMatrix(new double[][] {
            { -s14, s1553 / s14,   0.0 },