Download 4 Solved Problems on Simultaneous Equations - Assignment | CVEN 302 and more Assignments Civil Engineering in PDF only on Docsity!
16.1 (a) The simultaneous equations for the natural spline can be set up as 1 Cy 0 1 3 05 | | 0 05 2 05 c;|_ |-6 05 3 1 He,| \-24 1 4 Iles} | 4s I] |e, 0 These equations can be solved Lor the c's aud then Eqs. (16.21) aud (16.18) can be used to solve for the b’s and the d’s. The coefficients for the intervals can be summarized as interval a b c d 1 1 3.970954 0 0.029046 2 5 4.058091 0.087137 -0.40664 3 7 3.840249 -0.52282 -6.31535 4 8 -1.41909 -9.99585 5.414938 6 2 -5.16598 6.248963 -2.08299 These can be used to generate the following plot of the natural spline: oN F DO OD OF >> x= [122.5345]; >> y= [15782 1]; >> L c ) >> yy r x >> plot(xz,y,'o'