Answered step by step
Verified Expert Solution
Question
1 Approved Answer
We wish to compare the accuracy of three different finite different schemes by varying the grid spacing h. The first derivative of a function will
We wish to compare the accuracy of three different finite different schemes by varying the grid spacing h. The first derivative of a function will be approximated and compared with the exact derivative of the following function (x)Sin r3 The specific schemes we are going to consider are: first-order forward differences, second-order central differences and fourth-order central differences. You must derive the schemes and show the work, after that, you are tasked with numerically evaluating at 2-4 and create a loglog plot of the errorl vs. h grid spacing for all the schemes (in the same figure) with 6 different h values starting at h-1 and finishing at h-10-5. In your plot, clearly Identify each scheme and compute the slope. How does the slope relates to the order of each scheme
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