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, 22.06.2019 23:30
The next button in the review section shows the next available comment. next slide with no comment. previous comment. edited comment.
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Which of the following is not a symptom of chronic fatigue syndrome
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
People with high self-esteem: accept their strengths and weaknesses. believe that failed experiences are failures of their whole self. feel good about who they are only when they reach total success. need positive external experiences to counteract negative feelings that constantly plague them.
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a,b] se pot scrie ca produs de două numere prime? “.
Answers: 1
You know the right answer?
The objective of this problem is to compare second-order accurate forward, backward, and centered fi...
Questions
question
English, 04.04.2020 15:40
question
Mathematics, 04.04.2020 15:41
question
Mathematics, 04.04.2020 15:41
question
Social Studies, 04.04.2020 15:42
question
History, 04.04.2020 15:42
question
Physics, 04.04.2020 15:43
Questions on the website: 13722363