Runge phenomenon: equispaced vs Chebyshev nodes
What you are seeing: polynomial interpolation of the Runge function on . With equispaced nodes (orange), the interpolant matches at the nodes but oscillates wildly between them. With Chebyshev nodes (cyan), it converges uniformly. The black curve is the true function.
Cause: equispaced interpolation has a Lebesgue constant that grows like . Chebyshev nodes cluster at the endpoints to keep the constant bounded (). The bottom panel plots max error vs for both schemes.
n nodes12
speed2
WHAT TO TRY
- Vary each control and watch the rail readouts respond.
- Compare the diagnostic plot against the live scene.