MakarovSuites
English
EnglishDeutschРусскийУкраїнськаFrançaisEspañolItalianoPolski
Contact & licences

Math

Interpolation and Runge's phenomenon

Compare polynomial and cubic-spline interpolation, expose Runge’s phenomenon and measure the effect of Chebyshev nodes.

Interpolation and Runge's phenomenon — Actual application image
Actual application image

Try this

Increase the node count to expose Runge oscillations near the ends. Compare barycentric polynomial interpolation and a natural cubic spline. Errors are sampled at 2001 points; the plot clips extreme overshoot to keep the function readable.

Equations used in the module
Equations
p(x) = [Σ wᵢ yᵢ/(x−xᵢ)] / [Σ wᵢ/(x−xᵢ)]
wᵢ = 1 / ∏ⱼ≠ᵢ(xᵢ−xⱼ)
Chebyshev–Lobatto: xᵢ = −cos(πi/(n−1))
Natural cubic spline: continuous first and second derivatives; s″(−1)=s″(1)=0

Related experiments

Back to catalogue
Continued fractions — Actual application image

Math

Continued fractions

Build continued fractions term by term and inspect convergents, denominators and approximation errors for famous constants and custom decimals.

Möbius transformations — Actual application image

Math

Möbius transformations

Transform complex grids and circles by translations, rotations, reciprocals and fractional linear maps, with a Riemann-sphere view.

Logic gates — Actual application image

Math

Logic gates

Operate Boolean gates, half and full adders, a four-bit carry chain and an edge-triggered memory bit.