Figure 7: Function (black curve) and its interpolant on Chebyshev polynomials (red curve), for (left panel) and (right panel). The collocation points are denoted by the blue circles and correspond to Gauss–Lobatto quadrature.