Compute four coefficients of third order spline.