Interpolation of a spline function. Examples are subject to change in the code.
- t = [0, 1, 2, 3]
- y = [1, 1, 0, 10]
- S0(x) = 0.0(1 - x)^3 + -1.0(x - 0)^3 + 2.0(x - 0) + 1.0(1 - x)
- S1(x) = -1.0(2 - x)^3 + 3.0(x - 1)^3 + -3.0(x - 1) + 2.0(2 - x)
- S2(x) = 3.0(3 - x)^3 + 0.0(x - 2)^3 + 10.0(x - 2) + -3.0(3 - x)