Abstract
Chebfun is a Matlab-based software system that overloads Matlab’s discrete operations for vectors and matrices to analogous continuous operations for functions and operators. We begin by describing Chebfun’s fast capabilities for Clenshaw-Curtis and also Gauss-Legendre, -Jacobi, -Hermite, and -Laguerre quadrature, based on algorithms of Waldvogel and Glaser, Liu and Rokhlin. Then we consider how such methods can be applied to quadrature problems including 2D integrals over rectangles, fractional derivatives and integrals, functions defined on unbounded intervals, and the fast computation of weights for barycentric interpolation.
This is a preview of subscription content, access via your institution.
References
Assheton P. Comparing Chebfun to Adaptive Quadrature Software. MS Thesis, Mathematical Modelling and Scientific Computing, Oxford University, 2008
Berrut J P, Trefethen L N. Barycentric Lagrange interpolation. SIAM Rev, 2004, 46: 501–517
Clenshaw C W, Curtis A R. A method for numerical integration on an automatic computer. Numer Math, 1960, 2: 197–205
Espelid T O. Doubly adaptive quadrature routines based on Newton-Cotes rules. BIT Numer Math, 2003, 43: 319–337
Espelid T O. Extended doubly adaptive quadrature routines. Tech Rep 266. Department of Informatics, University of Bergen
Gentleman W M. Implementing Clenshaw-Curtis quadrature I and II. J ACM, 1972, 15: 337–346
Glaser A, Liu X, Rokhlin V. A fast algorithm for the calculation of the roots of special functions. SIAM J Sci Comp, 2007, 29: 1420–1438
Golub G H, Welsch J H. Calculation of Gauss quadrature rules. Math Comp, 1969, 23: 221–230
Gonnet P. Increasing the reliability of adaptive quadrature using explicit interpolants. ACM Trans Math Softw, 2010, 37: 26:2–26:32
Gonnet P. Battery test of Chebfun as an integrator. http://www.maths.ox.ac.uk/chebfun/examples/quad, 2010
Hale N, Townsend A. Fast and accurate computation of Gauss-Jacobi nodes and weights. In preparation, 2012
Higham N J. The numerical stability of barycentric Lagrange interpolation. IMA J Numer Anal, 2004, 2: 547–556
Octave software. http://www.octave.org/
O’Hara H, Smith F J. Error estimation in the Clenshaw-Curtis quadrature formula. Comput J, 1968, 11: 213–219
Oldham K B, Spanier J. The Fractional Calculus: Integrations and Differentiations of Arbitrary Order. New York-London: Academic Press, 1974
Richardson M. Approximating Divergent Functions in the Chebfun System. MS Thesis, Mathematical Modelling and Scientific Computing, Oxford University, 2009
Salzer H E. Lagrangian interpolation at the Chebyshev points x n,ν = cos(νπ/n), ν = 0(1)n; some unnoted advantages. Computer J, 1972, 15: 156–159
Samko S G, Kilbas A A, Marichev O I. Fractional Integrals and Derivatives. New York: Gordon and Breach, 1993
Szegő G. Orthogonal Polynomials. Providence, RI: Amer Math Soc, 1939
Trefethen L N. Is Gauss quadrature better than Clenshaw-Curtis. SIAM Rev, 2008, 50: 67–87
Trefethen L N. Six myths of polynomial interpolation and quadrature. Math Today, 2011, 47: 184–188
Trefethen L N. Approximation Theory and Approximation Practice. Philadelphia: SIAM, in press
Trefethen L N, et al. Chebfun Version 4.0, 2011, http://www.maths.ox.ac.uk/chebfun/
Waldvogel J. Fast construction of the Fejér and Clenshaw-Curtis quadrature rules. BIT Numer Math, 2006, 46: 195–202
Wang H, Xiang S. On the convergence rates of Legendre approximation. Math Comp, 2012, 81: 861–877
Winston C. On mechanical quadratures formulae involving the classical orthogonal polynomials. Ann Math, 1934, 35: 658–677
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Hale, N., Trefethen, L.N. Chebfun and numerical quadrature. Sci. China Math. 55, 1749–1760 (2012). https://doi.org/10.1007/s11425-012-4474-z
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11425-012-4474-z
Keywords
- Chebfun
- Clenshaw-Curtis quadrature
- Gauss quadrature
- barycentric interpolation formula
- Riemann-Liouville integral
- fractional calculus
MSC(2010)
- 41A55
- 97N80