Question: Need MATLAB code for this problem NOT a written solution. Thanks. 2) In this exercise, you will be writing your own function, sineval,which will use

Need MATLAB code for this problem
NOT a written solution. Thanks.
 Need MATLAB code for this problem NOT a written solution. Thanks.

2) In this exercise, you will be writing your own function, sineval,which will use a quadratic spline to compute approximations for the sine function at any real number. You are to compute the quadratic spline S(x) using evenly-spaced nodes xi , , where x,,-x. = for k = 1,2, , n-1, and whose derivative is specified at xi. The numbers y,.yu , y, are the corresponding function values to be interpolated. On each interval [i,4. S(x) = S,(x) = a, th(x-4)+6(x-xi ), k=1.2 ,n-1 After applying the interpolation conditions, one obtains a& =y; 1,2 , n-1 (1) and y,-i-y, k = 1,2, , n-1 (2) ; After applying the smoothness conditions, one obtains If S(x)v, (derivative is specified to be v), then one obtains bv(4) Page 3 of 4 Use Equs. (3) and (4) to set up a linear system to solve for vector b that contains the coefficients bi,h,, a) ,b-i . Write down an example system' for n 5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!