Class GaussLegendre
java.lang.Object
org.episteme.core.mathematics.analysis.integration.GaussLegendre
Gauss-Legendre Quadrature.
Approximates integrals using roots of Legendre polynomials as nodes. Exact for polynomials of degree 2n-1.
* @author Silvere Martin-Michiellot
Reference:
Gauss, C. F. (1814). Methodus nova integralium valores per approximationem inveniendi. Commentationes Societatis Regiae Scientiarum Gottingensis Recentiores.
- Since:
- 1.0
- Author:
- Gemini AI (Google DeepMind)
-
Method Summary
-
Method Details
-
integrate
-
integrate
Computes the integral of f(x) over [a, b] using n points.Performs change of variables from [-1, 1] to [a, b].
- Parameters:
f- function to integratea- lower boundb- upper boundn- number of points- Returns:
- integral value
-