Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION 5 A formula to find a numerical approximation to the second derivative of a function f (x) is f', (x)-d2f dx2 f (x +
QUESTION 5 A formula to find a numerical approximation to the second derivative of a function f (x) is f', (x)-d2f dx2 f (x + h)-2f (x) + f (x-h) with the approximation being better and better as h 0, write a function file deriv2.m that imple- ments the formula. The inputs should be the function to be differentiated (remember the function handle construct @), the value of x, and the value of h. Use your code to estimate the second derivative of sin (x) at x = /4 with h = 10-1. [25]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started