Question: I need to write MatLab code to solve these two questions. If anyone can show me how to write this code it would help me

I need to write MatLab code to solve these two questions. If anyone can show me how to write this code it would help me out a lot.

4. Use the first derivative functions to estimate the dy/dx value for y=sin(x) at x=pi/3. Use a step size (delta x) of pi/10. Compute the magnitude of the error for each approximation (backward, forward, centered).

5. Repeat problem 4 using a step size (delta x) of pi/20. What effect does halving the step size have on each of the errors.

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!