From cc15aa3895d51255a8af5497e04112c42a8a0ce1 Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Thu, 4 Jul 2013 14:24:11 +0000 Subject: [PATCH] MATH-995 Javadoc: added warning about wrong usage. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1499765 13f79535-47bb-0310-9956-ffa450edef68 --- .../integration/IterativeLegendreGaussIntegrator.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java b/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java index c17cbf934..ba403885f 100644 --- a/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java +++ b/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java @@ -32,6 +32,14 @@ import org.apache.commons.math3.util.FastMath; * sub-interval and on each of them performs a * * Legendre-Gauss quadrature. + * Because of its non-adaptive nature, this algorithm can + * converge to a wrong value for the integral (for example, if the + * function is significantly different from zero toward the ends of the + * integration interval). + * In particular, a change of variables aimed at estimating integrals + * over infinite intervals as proposed + * + * here should be avoided when using this class. * * @version $Id$ * @since 3.1