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.
Horner as a special case of Clenshaw
A particularly simple case occurs when evaluating a polynomial of the form
.
The functions are simply
and are produced by the recurrence coefficients and .
In this case, the recurrence formula to compute the sum is
One way to evaluate this is to continue the recurrence one more step, and compute
(note the doubled a0 coefficient) followed by
Geodetic applications
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
Leaving off the initial term, the remainder is a summation of the appropriate form. There is no leading term because .
^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. Note that this paper is written in terms of the Shifted Chebyshev polynomials of the first kind .