Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I am having all sorts of trouble making these programs so that they can be used

ID: 2962500 • Letter: I

Question

I am having all sorts of trouble making these programs so that they can be used with #2 and similar questions.
If answered fully (all programs) and correctly, I will rate 5 starts plus donate extra points.
Please do not use a tridiagonal solver, use x = A b like mentioned in the bullet points.

If possible, I would also like help creating the code to plot these functions.


Construct the clamped cubic spline for f at these interpolation points, and use this piecewise polynomial to find an estimate for f(1/2). Construct the natural cubic spline for f, and use this piecewise polynomial to find an estimate for f(1/2). (PROGRAMMING) Implement the following three functions The first two functions determine the spline coefficients aj,bj,Cj,dj for the interpolation points (xj,yj) using the natural spline and not-a-knot boundary conditions, respectively, and store them in the n times 4 array C. The eval_spline function evaluates the spline with interpolation points x and the coefficients C at the point (s) z. To generate the coefficients: These functions will be used in the following problems. 2. Let f(x) = cos(3pix) on x epsilon [0,1].

Explanation / Answer

Hello There!!


Here is the general code that I have written three codes as mentioned in the bullet points.


you can run the code as: (in the command prompt enter:


now modify the code as required in the 2nd part !!!