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

What is perfect squares, What is Perfect Squares ? Any number that can ...

What is Perfect Squares ? Any number that can be written as an integer to the power of two is called a perfect square. For example, 4 can be written as 2 2 4 is a "perfect sq

Dilemmas of america''s minority groups, Explain this statement " As we begi...

Explain this statement " As we begin the 21st century, the dilemmas of America's minority groups remain perhaps the primary unresolved domestic issue facing the nation." How might

How many total inches of wood does he have, Eduardo is merging two 6-inch p...

Eduardo is merging two 6-inch pieces of wood with a piece in which measures 4 inches. How many total inches of wood does he have? This problem translates to the expression 6 ×

Infinite interval - improper integrals, Infinite Interval  - Improper Inte...

Infinite Interval  - Improper Integrals In this type of integral one or both of the limits that is upper limit and lower limit of integration are infinity.  In these cases the

Determine the average number and probability, 1) At a midway game at the st...

1) At a midway game at the state fair, the probability of winning an individual game is advertised to be 30% ( p = . 3). Suppose 50 people played the game (assume all 50 outcomes

Series is converges or diverges - limit comparison test, Determine if the f...

Determine if the following series converges or diverges by using limit comparison test. Solution To make use of the limit comparison test we require to find out a seco

Geometry of convex sets, (a) Given a norm jj jj on Rn, express the closed b...

(a) Given a norm jj jj on Rn, express the closed ball in Rn of radius r with center c as a set. (b) Given a set A and a vector v, all contained in Rn, express the translate of A by

Estimate how much did larry spend, Larry purchased 3 pairs of pants for $24...

Larry purchased 3 pairs of pants for $24 each or have 5 shirts for $18 each. How much did Larry spend? Divide the miles through the time to find the rate; 3,060 ÷ 5 = 612 mph.

Properties of t distribution, Properties of t distribution 1. The t di...

Properties of t distribution 1. The t distribution ranges from - ∞ to ∞ first as does the general distribution 2. The t distribution as the standard general distribution is

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