It generalizes to more than just Chebyshev polynomials; it applies to any class of functions that can be defined by a three-term recurrence relation.[2]
Clenshaw algorithm
Suppose that is a sequence of functions that satisfy the linear recurrence relation
where the coefficients and are known in advance. Note that in the most common applications, does not depend on , and is a constant that depends on neither nor .
Our goal is to evaluate a weighted sum of these functions
Given the coefficients , compute the values by the "reverse" recurrence formula:
The linear combination of the satisfies:
See Fox and Parker[3] for more information and stability analyses. The Horner scheme is a special case of the Clenshaw algorithm
(, , ).
Clenshaw's algorithm is extensively used in geodetic applications
where it is usually referred to as Clenshaw summation.[4] A simple application is summing the trigonometric series to compute
the meridian arc. These have the form
The recurrence relation for is
,
making the coefficients in the recursion relation
and the evaluation of the series is given by
Note that the algorithm requires only the evaluation of two
trigonometric quantities and .
References
^Attention: This template ({{cite doi}}) is deprecated. To cite the publication identified by doi:10.1090/S0025-5718-1955-0071856-0, please use {{cite journal}} (if it was published in a bona fide academic journal, otherwise {{cite report}} with |doi=10.1090/S0025-5718-1955-0071856-0 instead.