This site is version 0.0.1. Most of the code on this site is drafted by an agent and needs review. I apologize for the AI-speak, we are working on rewriting it!
viv-lang.org

Notebooks · posts/runge-phenomenon

The Runge phenomenon, where more points give a worse fit

Interpolate by a polynomial through equally spaced points and the error grows as you add points. Move the same number of points to and it falls geometrically, at a rate you can work out from where the function's poles are.

The function has poles at . Polynomial interpolation in Chebyshev points converges like , where is the size of the largest ellipse with foci that the function is analytic inside. The ellipse through has . Both interpolants use the barycentric formula, which is stable in Chebyshev points. With equally spaced points the problem is ill-conditioned (its Lebesgue constant grows exponentially with ), and this formula adds rounding error of its own.

Look inside this program

  • Atlas

    The program’s map: every function and which calls which.

  • There’s no recorded run of this program yet.

Shift+Enter in a cell runs it and moves to the next. Running a cell runs every cell above it too, as one program.

[1]lines 20–121