error in univariate spline interpolation