Compute forward and backward difference approximations of O(h) and O(h2), and central difference approximations of O(h2) and

Question:

Compute forward and backward difference approximations of O(h) and O(h2), and central difference approximations of O(h2) and O(h4) for the first derivative of y = cos x at x = π/4 using a value of h = π/12. Estimate the true percent relative error εt for each approximation.


Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Numerical Methods For Engineers

ISBN: 9780071244299

5th Edition

Authors: Steven C. Chapra, Raymond P. Canale

Question Posted: