Regarding section "Non-Uniform Cubic Hermite Splines", section 8, where you derive the derivative.

Why does the 2 get distributed inside the brackets here? Wouldn't it be better written 2C4(t - t4)? This would be easier to relate back to the derivative of the uniform spline. I realise this is probably a quirk of sympy, but it had me confused for a while.