Compute the derivative, Mathematics

Assignment Help:

Write an octave program that will take a set of points {xk, fk} representing a function and compute the derivative at the same points xk using

1. 2-point forward di erence

2. 2-point backward di erence

3. 3-point central di erence

4. 5-point central di erence

Use your program for the function

f(x) = ex

for which you know the correct answer to study the result as a function of h in the interval x ∈ [0; 1]. Make a table showing the values of the maximum absolute and relative errors for the 4 di erent methods for values of n=10, 100, 1000, 10000. Plot the di erent estimates for the derivative together with the analytical answer for 2 values of n. Comment on your results. You should submit an octave script or function le I can use to reproduce your results and a separate document (plain text le preferred) for your comments.

2050_Compute the derivative.png


Related Discussions:- Compute the derivative

Using pythagorean theorem solve z 2 = ( x + y )2 + 3502, Two people on bik...

Two people on bikes are at a distance of  350 meters.  Person A begin riding north at a rate of 5 m/sec and 7 minutes later on Person B begin riding south at 3 m/sec.  Determine th

Find the second derivative of the equation, Find the second derivative of t...

Find the second derivative of the below given equation Y= e x cosx

If pth term of ap is q and qth term is p. p.t its nth term, If the p th te...

If the p th term of an AP is q and the q th term is p. P.T its n th term is (p+q-n). Ans:    APQ a p = q a q = p a n = ? a + (p-1) d = q a + (q-1) d = p

Bob is 2 years from being double as old as ellen, Bob is 2 years from being...

Bob is 2 years from being double as old as Ellen. The sum of twice Bob's age and three times Ellen's age is 66. How old is Ellen? Let x = Ellen's age and let y = Bob's age. Sin

Project, report on shares and dividend using newspaper

report on shares and dividend using newspaper

Find fourier series, Question: Find Fourier series for the periodic fun...

Question: Find Fourier series for the periodic function of period 2 π,defined by      f(x) = x 4 ,  - π ≤ x ≤ π

Alternating series test - sequences and series, Alternating Series Test - S...

Alternating Series Test - Sequences and Series The final two tests that we looked at for series convergence has needed that all the terms in the series be positive.  Actually t

How many gumdrops, Will has a bag of gumdrops. If he eats 2 of his gumdrops...

Will has a bag of gumdrops. If he eats 2 of his gumdrops, he will have among 2 and 6 of them left. Which of the subsequent represents how many gumdrops, x, were originally in his b

Game theory, Game Theory It is used to find out the optimum strategy in...

Game Theory It is used to find out the optimum strategy in a competitive condition,While two or more competitors are engaged in making decisions, this may occupy conflict of in

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd