Numerical Algorithms

, Volume 67, Issue 3, pp 491–506 | Cite as

Fast variants of the Golub and Welsch algorithm for symmetric weight functions in Matlab

  • Gérard Meurant
  • Alvise Sommariva
Original Paper


In this paper, we investigate variants of the well-known Golub and Welsch algorithm for computing nodes and weights of Gaussian quadrature rules for symmetric weights w in intervals (−a, a) (not necessarily bounded). The purpose is to reduce the complexity of the Jacobi eigenvalue problem stemming from Wilf’s theorem and show the effectiveness of Matlab implementations of our variants for reducing the computer times compared to some other methods. Numerical examples on three test problems show the benefits of these variants.


Algebraic quadrature Symmetric weights Golub and Welsch algorithm 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Bogaert, I., Michiels, B., Foster, J.: 𝒪 computation of Legendre polynomials and Gauss-Legendre nodes and weights for parallel computing. SIAM J. Sci. Comput. 34(2), C83–C101 (2012)CrossRefMATHGoogle Scholar
  2. 2.
    Chan, R.H., Greif, C., O’ Leary, D.P. (eds.): Milestones in matrix computation: the selected works of Gene H. Golub with commentaries. Oxford University Press, Oxford (2007)Google Scholar
  3. 3.
  4. 4.
  5. 5.
    Chihara, T.S.: An introduction to orthogonal polynomials. Gordon and Breach, New York (1978)MATHGoogle Scholar
  6. 6.
    Da Fies, G., Vianello, M.: Trigonometric Gaussian quadrature on subintervals of the period. Electron. Trans. Numer. Anal. 39, 102–112 (2012)MathSciNetMATHGoogle Scholar
  7. 7.
    Da Fies, G., Vianello, M.: Algebraic cubature on planar lenses and bubbles. Dolomites Res. Notes Approx. 5, 7–12 (2012)CrossRefGoogle Scholar
  8. 8.
    Da Fies, G., Sommariva, A., Vianello, M.: Algebraic cubature on generalized elliptical sectors. Appl. Numer. Math. 74, 49–61 (2013)MathSciNetCrossRefMATHGoogle Scholar
  9. 9.
    Davis, P.J., Rabinowitz, P.: Methods of numerical integration, 2nd edn. Dover, New York (1984)MATHGoogle Scholar
  10. 10.
    Gautschi, W.: On some orthogonal polynomials of interest in theoretical chemistry. BIT 24, 473–483 (1984)MathSciNetCrossRefMATHGoogle Scholar
  11. 11.
    Gautschi, W.: Algorithm 726: ORTHPOL. A package of routines for generating orthogonal polynomials and Gauss-type quadrature rules. ACM Trans. Math. Softw. 20(1), 21–62 (1994)CrossRefMATHGoogle Scholar
  12. 12.
    Gautschi, W.: The interplay between classical analysis and (numerical) linear algebra- a tribute to Gene H. Golub. Electron. Trans. Numer. Anal. 13, 119–147 (2002)MathSciNetMATHGoogle Scholar
  13. 13.
    Gautschi, W.: Orthogonal Polynomials. Computation and Approximation. Oxford Science, Oxford (2004)MATHGoogle Scholar
  14. 14.
    Gautschi, W.: Orthogonal polynomials (in Matlab). J. Comput. Appl. Math. 178(1–2), 215–234 (2005)MathSciNetCrossRefMATHGoogle Scholar
  15. 15.
    Gautschi, W.: Sub-range Jacobi polynomials. Numer. Algoritm. 61(4), 649–657 (2012)MathSciNetCrossRefMATHGoogle Scholar
  16. 16.
  17. 17.
    Glaser, A., Liu, X., Rokhlin, V.: A fast algorithm for the calculation of the roots of special functions. SIAM J. Sci. Comput. 29, 1420–1438 (2007)MathSciNetCrossRefMATHGoogle Scholar
  18. 18.
    Golub, G.H., Meurant, G.: Matrices, moments and quadrature with applications. Princeton series in applied mathematics (2010)Google Scholar
  19. 19.
    Golub, G.H., Welsch, J.H.: Calculation of Gauss quadrature rules. Technical report no. CS 81, November 3, 1967. Computer Science Department, School of Humanities and Sciences, Stanford UniversityGoogle Scholar
  20. 20.
    Golub, G.H., Welsch, J.H.: Calculation of Gauss quadrature rules. Math. Comput. 23, 221–230 (1969)MathSciNetCrossRefMATHGoogle Scholar
  21. 21.
  22. 22.
    Hale, N., Townsend, A.: Fast and accurate computation of Gauss-Legendre and Gauss-Jacobi nodes and weights. SIAM J. Sci. Comput. 35(2), A652–A674 (2013)MathSciNetCrossRefMATHGoogle Scholar
  23. 23.
    Hale, N., Trefethen, L.N.: Chebfun and numerical quadrature. Sci. China Math. 55(9), 1749–1760 (2012)MathSciNetCrossRefMATHGoogle Scholar
  24. 24.
    Mastroianni, G., Milovanovic, G.V.: Interpolation processes, basic theory and applications, pp. 102–103. Springer (2008)Google Scholar
  25. 25.
    Meurant, G.: Personal homepage, (
  26. 26.
    Milovanovic, G.V., Cvetkovic, A.S.: Note on a construction of weights in Gauss-type quadrature rule. Facta Univ. Ser. Math. Inform. 15, 69–83 (2000)MathSciNetMATHGoogle Scholar
  27. 27.
  28. 28.
    Trefethen, L.N.: Approximation theory and approximation practice. Society for Industrial and Applied Mathematics, Philadelphia (2013)MATHGoogle Scholar
  29. 29.
    Wilf, H.S.: Mathematics for the Physical Sciences. Wiley, New York (1962). [Reprinted in 1978 by Dover Publications, New York.]MATHGoogle Scholar

Copyright information

© Springer Science+Business Media New York 2013

Authors and Affiliations

  1. 1.ParisFrance
  2. 2.University of PaduaPaduaItaly

Personalised recommendations