Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Let us numerically evaluate the derivative of f(x)= sin(x) at x=pi/3, using two different numerical formulae. Use Matlab to solve the problem. 11101. Let us

Let us numerically evaluate the derivative of f(x)= sin(x) at x=pi/3, using two different numerical formulae. Use Matlab to solve the problem.

image text in transcribed

11101. Let us numerically evaluate the derivative of f(c) = sin(x) at x = 1/3, using two different numerical formulae: Centered-difference formula: f'(z) = f(x + h) - f(x - h) 2h Forward-difference formula: f(x + h) - f(x) h (Vary the step-size h between 10-15 to 10-1 (consider using the logspace command), and construct a log-log plot of absolute error and h. Note that we can compute the absolute error, since we know that the true value of f'(T/3) = 0.5. Using the graphs above, Find a) the (approximately) optimum value of h for the two difference formula, and compare the absolute errors of the two numerical formulae. 11101. Let us numerically evaluate the derivative of f(c) = sin(x) at x = 1/3, using two different numerical formulae: Centered-difference formula: f'(z) = f(x + h) - f(x - h) 2h Forward-difference formula: f(x + h) - f(x) h (Vary the step-size h between 10-15 to 10-1 (consider using the logspace command), and construct a log-log plot of absolute error and h. Note that we can compute the absolute error, since we know that the true value of f'(T/3) = 0.5. Using the graphs above, Find a) the (approximately) optimum value of h for the two difference formula, and compare the absolute errors of the two numerical formulae

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions

Question

where is the breach at in this corporate network diagram up top

Answered: 1 week ago