Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 5 A formula to find a numerical approximation to the second derivative of a function f (x) is f', (x)-d2f dx2 f (x +

image text in transcribed

QUESTION 5 A formula to find a numerical approximation to the second derivative of a function f (x) is f', (x)-d2f dx2 f (x + h)-2f (x) + f (x-h) with the approximation being better and better as h 0, write a function file deriv2.m that imple- ments the formula. The inputs should be the function to be differentiated (remember the function handle construct @), the value of x, and the value of h. Use your code to estimate the second derivative of sin (x) at x = /4 with h = 10-1. [25]

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_2

Step: 3

blur-text-image_3

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

Statistical And Scientific Database Management International Working Conference Ssdbm Rome Italy June 21 23 1988 Proceedings Lncs 339

Authors: Maurizio Rafanelli ,John C. Klensin ,Per Svensson

1st Edition

354050575X, 978-3540505754

More Books

Students also viewed these Databases questions