On Computing the Points and Weights for Gauss--Legendre Quadrature

Author:
  • PSPaul N. Swarztrauber
    Paul N. Swarztrauber

Abstract
Three methods are compared for computing n points xi and weights w(xi) for Gauss--Legendre quadrature. The eigensystem method computes the points as the eigenvalues of a symmetric tridiagonal matrix, and the weights are computed from its eigenvectors. The resulting error is O(n) for the points and $O(n^2)$ for the weights. Using an inverse Taylor series computation for the points, Yakimiw [J. Comput. Phys., 129 (1996), pp. 406--430] reduced the point error growth to O(1). He also reduced the error in the weights to O(n) and obtained uniform pointwise relative accuracy. However, the points xi cluster quadratically near the end points $x = \pm 1$, where for some n = nmax they coalesce or even exchange to within machine accuracy, and computation fails. Although this has not been a problem in the past, it could soon become so because weather models are now approaching resolutions with n > 1000. Here we compare these methods to the Fourier--Newton method, which consists of Newton's method for computing the tra...

This publication has 9 references indexed in Scilit: