Problem
Suppose cosx is approximated by an interpolating polynomial of degree n using (n+1) equally spaced points in the interval [0,2π]. How accurate is this approximation in terms of n? What is the minimum number of points needed to achieve error less than10-6?