Web & Cloud Services in Ireland | +353 87 613 1779

Spline Calculation Excel File

Solve in Excel: Use and MMULT or manual algebra.

Equation for i=2: h1*z1 + 2*(h1+h2)*z2 + h2*z3 = 6*(slope2 - slope1) → 1*0 + 2*(1+2)*z2 + 2*z3 = 6*(-0.5 - 1) → 6*z2 + 2*z3 = -9 spline calculation excel

So: (z_1 = 0, z_2 = -1.92857, z_3 = 1.285714, z_4 = 0) For each interval ([x_i, x_i+1]): Solve in Excel: Use and MMULT or manual algebra

(x=1 to 2, h=1): a = 2 b = (3-2)/1 - 1/6*(2 0 + (-1.92857)) = 1 - (1/6) (-1.92857) = 1 + 0.32143 = 1.32143 c = 0/2 = 0 d = (-1.92857 - 0)/(6*1) = -0.32143 z_2 = -1.92857

Solve in Excel: Use and MMULT or manual algebra.

Equation for i=2: h1*z1 + 2*(h1+h2)*z2 + h2*z3 = 6*(slope2 - slope1) → 1*0 + 2*(1+2)*z2 + 2*z3 = 6*(-0.5 - 1) → 6*z2 + 2*z3 = -9

So: (z_1 = 0, z_2 = -1.92857, z_3 = 1.285714, z_4 = 0) For each interval ([x_i, x_i+1]):

(x=1 to 2, h=1): a = 2 b = (3-2)/1 - 1/6*(2 0 + (-1.92857)) = 1 - (1/6) (-1.92857) = 1 + 0.32143 = 1.32143 c = 0/2 = 0 d = (-1.92857 - 0)/(6*1) = -0.32143