Question: [4pts] Problem #5) a) Write a MATLAB function ScndDeriv.m that takes the second derivative of function f() using the forward difference method or the central

 [4pts] Problem #5) a) Write a MATLAB function "ScndDeriv.m" that takes

[4pts] Problem #5) a) Write a MATLAB function "ScndDeriv.m" that takes the second derivative of function f() using the forward difference method or the central difference method The MATLAB function takes in the function f(x), the derivative location x, the size of Ar, and the option of selecting one of the two methods, and outputs the second derivative value. b) Using the MATLAB function from part a), take the second derivative for the following functions at x -2 f (x) = ex^-3 + 2x Forward difference method and Ar 1 Forward difference method and Ar-0. Forward difference method and -0.01 f(x) = sin (x) + 4e0 3x + 7 Central difference method and Central difference method and -0.05 Central difference method and Ar = 0.001

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!