You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2013/07/04 16:24:11 UTC

svn commit: r1499765 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java

Author: erans
Date: Thu Jul  4 14:24:11 2013
New Revision: 1499765

URL: http://svn.apache.org/r1499765
Log:
MATH-995
Javadoc: added warning about wrong usage.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java?rev=1499765&r1=1499764&r2=1499765&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/IterativeLegendreGaussIntegrator.java Thu Jul  4 14:24:11 2013
@@ -32,6 +32,14 @@ import org.apache.commons.math3.util.Fas
  * sub-interval and on each of them performs a
  * <a href="http://mathworld.wolfram.com/Legendre-GaussQuadrature.html">
  * Legendre-Gauss</a> quadrature.
+ * Because of its <em>non-adaptive</em> 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
+ * <a href="http://en.wikipedia.org/w/index.php?title=Numerical_integration#Integrals_over_infinite_intervals">
+ *  here</a> should be avoided when using this class.
  *
  * @version $Id$
  * @since 3.1