Answer to Question #188322 in MatLAB for Muhammad

Question #188322

Use finite difference approximations of O(h²) to compute f'(2.36) and f''(2.36)

from the data :

x = 2.36 2.37 2.38 2.39

f(x) = 0.85866 0.86289 0.86710 0.87129


1
Expert's answer
2021-05-02T23:45:53-0400
x = [2.36, 2.37, 2.38, 2.39];
f =  [0.85866, 0.86289, 0.86710, 0.87129];
h = 0.01;
fp = (-1.5*f(1) + 2*f(2) - 0.5*f(3)) / h;
fpp = (2*f(1) - 5*f(2) + 4*f(3) - f(4))/ h/h;

fprintf("f'(2.36) = %.3f; f''(2.36) = %.3f\n", fp, fpp)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS