Computers and Technology, 21.08.2019 03:20, jtorres0520
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 derivative 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 centered 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 backward 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.
Answers: 1
Mathematics, 17.10.2019 18:20, miaa1024
Answers: 2
Mathematics, 24.10.2019 21:43, keaganaplin
Answers: 3
Mathematics, 04.11.2019 22:31, rameen4
Answers: 1
The objective of this problem is to compare second-order accurate forward, backward, and centered fi...
Mathematics, 21.05.2021 04:10
Mathematics, 21.05.2021 04:10
Social Studies, 21.05.2021 04:10
Mathematics, 21.05.2021 04:10
Arts, 21.05.2021 04:10