Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write c++ program to explain each question! Thanks in advance! 3. a. (i) Compare the accuracy of the following three formulas for approxi- mating

Please write c++ program to explain each question! Thanks in advance!
image text in transcribed
image text in transcribed
image text in transcribed
3. a. (i) Compare the accuracy of the following three formulas for approxi- mating the derivative, f'(x): Mi(n) = f(x + h) f(x) h ) Mach)-f(x+h)-f( x 2h Mach) -f(x + 2h) + 4f (x + h) - 3f (x) 2h In particular, test the above approximations when f(x) = x/3, x = 0 or r = 1, and h = 10-P, p = 3, 4, 5,..., 20. (ii) As his decreased, the error becomes smaller, until a critical value of h is reached, after which point the error starts to increase as h decreases. Find the critical h, herit, experimentally. Note: in order to avoid problems in evaluating 24/3 when I

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions