Piecewise polynomial interpolation¶
Let us repeat the data from Poor conditioning in polynomial interpolation but use piecewise polynomials constructed using the Interpolations
package.
Here is an interpolant that is linear between each pair of consecutive nodes.
We may instead request a smoother interpolant that is piecewise cubic.