Removed compilation warnings related to deprecated classes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1377244 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e9b6a4ffb3
commit
f3f5800a4c
|
@ -28,6 +28,7 @@ import org.junit.Assert;
|
|||
import org.junit.Test;
|
||||
|
||||
|
||||
@Deprecated
|
||||
public class LegendreGaussIntegratorTest {
|
||||
|
||||
@Test
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue