Gaussquadrature
Gaussquadrature, also known as Gaussian quadrature, is a family of numerical methods for approximating definite integrals. The core idea is to replace the integral with a weighted sum of function evaluations at specific points, called nodes. Unlike simpler methods like the trapezoidal rule or Simpson's rule, which use equally spaced nodes, Gaussian quadrature selects the nodes and weights optimally to achieve the highest possible degree of accuracy for a given number of function evaluations.
The general form of a Gaussian quadrature formula for integrating a function f(x) over the interval [a,
The nodes and weights for Gaussian quadrature are typically derived from orthogonal polynomials. For integration over