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 2012/08/25 12:05:13 UTC
svn commit: r1377244 - in
/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis:
integration/LegendreGaussIntegratorTest.java
polynomials/PolynomialsUtilsTest.java
Author: luc
Date: Sat Aug 25 10:05:13 2012
New Revision: 1377244
URL: http://svn.apache.org/viewvc?rev=1377244&view=rev
Log:
Removed compilation warnings related to deprecated classes.
Modified:
commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/LegendreGaussIntegratorTest.java
commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialsUtilsTest.java
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/LegendreGaussIntegratorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/LegendreGaussIntegratorTest.java?rev=1377244&r1=1377243&r2=1377244&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/LegendreGaussIntegratorTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/LegendreGaussIntegratorTest.java Sat Aug 25 10:05:13 2012
@@ -28,6 +28,7 @@ import org.junit.Assert;
import org.junit.Test;
+@Deprecated
public class LegendreGaussIntegratorTest {
@Test
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialsUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialsUtilsTest.java?rev=1377244&r1=1377243&r2=1377244&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialsUtilsTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/polynomials/PolynomialsUtilsTest.java Sat Aug 25 10:05:13 2012
@@ -17,7 +17,7 @@
package org.apache.commons.math3.analysis.polynomials;
import org.apache.commons.math3.analysis.UnivariateFunction;
-import org.apache.commons.math3.analysis.integration.LegendreGaussIntegrator;
+import org.apache.commons.math3.analysis.integration.IterativeLegendreGaussIntegrator;
import org.apache.commons.math3.util.ArithmeticUtils;
import org.apache.commons.math3.util.FastMath;
import org.apache.commons.math3.util.Precision;
@@ -375,7 +375,7 @@ public class PolynomialsUtilsTest {
}
};
double dotProduct =
- new LegendreGaussIntegrator(5, 1.0e-9, 1.0e-8, 2, 15).integrate(1000000, f, a, b);
+ new IterativeLegendreGaussIntegrator(5, 1.0e-9, 1.0e-8, 2, 15).integrate(1000000, f, a, b);
if (p1.degree() == p2.degree()) {
// integral should be non-zero
Assert.assertTrue("I(" + p1.degree() + ", " + p2.degree() + ") = "+ dotProduct,