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

How to change improper fractions to mixed/ proper fractions, how do you cha...

how do you change an improper fraction to a mixed number or whole or proper

Differential equation to determine initial value problem, Solve the subsequ...

Solve the subsequent IVP. cos(x) y' + sin(x) y = 2 cos 3 (x) sin(x) - 1 y(p/4) = 3√2, 0 Solution : Rewrite the differential equation to determine the coefficient of t

Divides a given line-segment externally in the ratio of 1:2, Divides a give...

Divides a given line-segment externally in the ratio of 1:2 Construction: i )Draw BX making an actueangle at B. ii) Starting from B, mark 2 equal points on BX as shown in the f

Estimate whose time was the fastest, Nancy, Jennifer, Alex, and Joy ran a r...

Nancy, Jennifer, Alex, and Joy ran a race. Nancy's time was 50.24 seconds, Jennifer's was 50.32, Alex's was 50.9, and Joy's was 50.2. Whose time was the fastest? The fastest ti

The laplace method, The Laplace method Laplace method employs all the i...

The Laplace method Laplace method employs all the information by assigning equal probabilities to the possible payoffs for every action and then selecting such alternative whic

2+2=5, How could 2+2 will be Equal to 5

How could 2+2 will be Equal to 5

Mathematical model representing the total parking cost, John has a choice o...

John has a choice of using one of two parking garages when he visits downtown: Option1:  $8 an hour for the first two hours, then $2 and hour for each hour more than 2; or Op

Elimination, Eliment t from following equations v=u+at s=ut+1/2at^2

Eliment t from following equations v=u+at s=ut+1/2at^2

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