7. (Coding) In this problem we will write code to create a program which takes as input 2 arrays of numbers, (x1,x2,...,
Posted: Sun Jul 03, 2022 12:00 pm
7. (Coding) In this problem we will write code to create a program which takes as input 2 arrays of numbers, (x1,x2,...,xn) and (y₁, 92,..., yn), and outputs the equations of the natural cubic spline between these points. 1 (a) Create a function which takes as an input these two arrays and outputs the matrix and solution vector to find our vector c. (b) Use a (built-in) linear system of equations solver to find the vector c based on the outputs from (a). (c) Use your vector c as well as your points x and y to find b and d.