Interpolation (cmlabs.interpolate)
The cmlabs.interpolate module provides a collection of interpolation methods and related utilities.
Lagrange/Newton interpolation
Lagrange interpolation polynomial value at \(x\). |
|
Remainder in interpolation formulas. |
|
Return the ordered divided differences list. |
|
Newton interpolation polynomial value at \(x\). |
Finite differences interpolation
Return the finite differences table. |
|
Return the forward differences list for \(f(x_0)\). |
|
Return the backward differences list for \(f(x_n)\). |
|
Newton's forward interpolation formula. |
|
Newton's backward interpolation formula. |
|
Gauss’s forward interpolation formula. |
|
Gauss’s backward interpolation formula. |
|
Stirling's interpolation formula. |
|
Bessel's interpolation formula. |
|
Interpolate the value of a function at a given point. |
Splines
Cubic spline data interpolator. |
Tests
Calculate Lagrange interpolation polynomial of degree 1 at \(x^*\). |
|
Estimate the derivative and remainder degree 1. |
|
Calculate Lagrange interpolation polynomial of degree 2 at \(x^*\). |
|
Estimate the derivative and remainder degree 2. |
|
Compare Lagrange and Newton interpolation. |
|
Estimate the remainder of interpolation. |
|
Cubic spline interpolation/differentiation. |
|
Lagrange interpolation from docs example. |
|
Remainder from docs example. |
|
Newton interpolation from docs example. |
|
Finite differences from docs example. |
|
Forward differences from docs example. |
|
Backward differences from docs example. |
|
Newton's forward interpolation formula from docs example. |
|
Newton's backward interpolation formula from docs example. |
|
Gauss’s forward interpolation formula from docs example. |
|
Gauss’s backward interpolation formula from docs example. |
|
Cubic spline interpolation from docs example. |