subject

The objective of this problem is to compare second-order accurate forward, backward, and centered finite-difference approximations of the first derivative of a function to the actual value of the derivative. this will be done for
f (x) = e−2x − x
(a) use calculus to determine the correct value of the de­rivative at x = 2.
(b) develop an m-file function to evaluate the centered finite-difference approximations, starting with x = 0.5. thus, for the first evaluation, the x values for the cen­tered difference approximation will be x = 2 ± 0.5 or x = 1.5 and 2.5. then, decrease in increments of 0.1 down to a minimum value of δx = 0.01.
(c) repeat part (b) for the second-order forward and back­ward differences. (note that these can be done at the same time that the centered difference is computed in the loop.)
(d) plot the results of (b) and (c) versus x. include the exact result on the plot for comparison.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:00
Your business be in google top rank.more the rank more the business leads.for best seo and digital marketing services be confident to contact you can get best seo solutions by assistance experts provide digital marketing, website development, seo expert services and social media internet seo expert services your branding solutions. seo expert services ,best seo expert services,online seo expert services,
Answers: 3
question
Computers and Technology, 23.06.2019 07:00
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
Intellectual property rights are exclusive rights that protect both the created and the creation. ipr offers exclusively what benefits to the person or people covered by it
Answers: 3
question
Computers and Technology, 24.06.2019 18:00
Explain the circumstances for which the interquartile range is the preferred measure of dispersion. what is an advantage that the standard deviation has over the interquartile range? choose the correct answer below. a. the interquartile range is preferred when the distribution is symmetric. an advantage of the standard deviation is that it increases as the dispersion of the data increases. b. the interquartile range is preferred when the data are not skewed or no have outliers. an advantage of the standard deviation is that it uses all the observations in its computation. c. the interquartile range is preferred when the distribution is symmetric. an advantage of the standard deviation is that it is resistant to extreme values. d. the interquartile range is preferred when the data are bell shaped. an advantage of the standard deviation is that it is resistant to extreme values. e. the interquartile range is preferred when the data are skewed or have outliers. an advantage of the standard deviation is that it uses all the observations in its computation. f. the interquartile range is preferred when the data are bell shaped. an advantage of the standard deviation is that it increases as the dispersion of the data increases.
Answers: 2
You know the right answer?
The objective of this problem is to compare second-order accurate forward, backward, and centered fi...
Questions
question
Mathematics, 16.11.2020 23:40
Questions on the website: 13722361