Skip to main content
Log in

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

  • Original Paper
  • Published:
Numerical Algorithms Aims and scope Submit manuscript

Abstract

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  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)

    Article  MATH  Google Scholar 

  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. Chebfun Team. Jacpts.m, (http://www.mathworks.com/matlabcentral/fileexchange/23972-chebfun/content/chebfun/jacpts.m)

  4. Chebfun Team, Hermpts.m, (http://mathworks.com/matlabcentral/fileexchange/23972-chebfun/content/chebfun/hermpts.m)

  5. Chihara, T.S.: An introduction to orthogonal polynomials. Gordon and Breach, New York (1978)

    MATH  Google Scholar 

  6. Da Fies, G., Vianello, M.: Trigonometric Gaussian quadrature on subintervals of the period. Electron. Trans. Numer. Anal. 39, 102–112 (2012)

    MathSciNet  MATH  Google Scholar 

  7. Da Fies, G., Vianello, M.: Algebraic cubature on planar lenses and bubbles. Dolomites Res. Notes Approx. 5, 7–12 (2012)

    Article  Google Scholar 

  8. Da Fies, G., Sommariva, A., Vianello, M.: Algebraic cubature on generalized elliptical sectors. Appl. Numer. Math. 74, 49–61 (2013)

    Article  MathSciNet  MATH  Google Scholar 

  9. Davis, P.J., Rabinowitz, P.: Methods of numerical integration, 2nd edn. Dover, New York (1984)

    MATH  Google Scholar 

  10. Gautschi, W.: On some orthogonal polynomials of interest in theoretical chemistry. BIT 24, 473–483 (1984)

    Article  MathSciNet  MATH  Google Scholar 

  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)

    Article  MATH  Google Scholar 

  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)

    MathSciNet  MATH  Google Scholar 

  13. Gautschi, W.: Orthogonal Polynomials. Computation and Approximation. Oxford Science, Oxford (2004)

    MATH  Google Scholar 

  14. Gautschi, W.: Orthogonal polynomials (in Matlab). J. Comput. Appl. Math. 178(1–2), 215–234 (2005)

    Article  MathSciNet  MATH  Google Scholar 

  15. Gautschi, W.: Sub-range Jacobi polynomials. Numer. Algoritm. 61(4), 649–657 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  16. Gautschi, W.: OPQ suite, (http://www.cs.purdue.edu/archives/2002/wxg/codes)

  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)

    Article  MathSciNet  MATH  Google Scholar 

  18. Golub, G.H., Meurant, G.: Matrices, moments and quadrature with applications. Princeton series in applied mathematics (2010)

  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 University

  20. Golub, G.H., Welsch, J.H.: Calculation of Gauss quadrature rules. Math. Comput. 23, 221–230 (1969)

    Article  MathSciNet  MATH  Google Scholar 

  21. Hale, N.: quadpts, (https://github.com/nickhale/quadpts/)

  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)

    Article  MathSciNet  MATH  Google Scholar 

  23. Hale, N., Trefethen, L.N.: Chebfun and numerical quadrature. Sci. China Math. 55(9), 1749–1760 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  24. Mastroianni, G., Milovanovic, G.V.: Interpolation processes, basic theory and applications, pp. 102–103. Springer (2008)

  25. Meurant, G.: Personal homepage, (http://gerard.meurant.pagesperso-orange.fr/)

  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)

    MathSciNet  MATH  Google Scholar 

  27. Sommariva, A.: Homepage, (http://www.math.unipd.it/alvise/software.html)

  28. Trefethen, L.N.: Approximation theory and approximation practice. Society for Industrial and Applied Mathematics, Philadelphia (2013)

    MATH  Google Scholar 

  29. Wilf, H.S.: Mathematics for the Physical Sciences. Wiley, New York (1962). [Reprinted in 1978 by Dover Publications, New York.]

    MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Alvise Sommariva.

Additional information

Work supported by the “ex-60%” funds and by the project “Interpolation and Extrapolation: new algorithms and applications” of the University of Padova, and by the INdAM GNCS.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Meurant, G., Sommariva, A. Fast variants of the Golub and Welsch algorithm for symmetric weight functions in Matlab. Numer Algor 67, 491–506 (2014). https://doi.org/10.1007/s11075-013-9804-x

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11075-013-9804-x

Keywords

Navigation