Use the
diff(y)
command to develop a MATLAB M-file function to compute finite-difference approximations to the first and second derivative at each x value in the table below. Use finite-difference approximations that are second- order correct, O(x 2):x | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
y | 1.4 | 2.1 | 3.3 | 4.8 | 6.8 | 6.6 | 8.6 | 7.5 | 8.9 | 10.9 | 10 |
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.