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

Find out the value of n element of a set, A set consists of (2n+1) elements...

A set consists of (2n+1) elements. If the number of subsets of this set which consist of at most n elements is 8192. Find out the value of n. Ans: The following set has (2n + 1

Equations with finding principals, I need help solving principal equations ...

I need help solving principal equations where interest,rate,and time are given.

Distinct roots, There actually isn't a whole lot to do throughout this case...

There actually isn't a whole lot to do throughout this case.  We'll find two solutions which will form a basic set of solutions and therefore our general solution will be as,

Economics, A mortgage lender seeks to maximize the expected value of its po...

A mortgage lender seeks to maximize the expected value of its portfolio. The portfolio, of course, is the sum of all of the mortgages in it, so no generality is lost by examining t

Pendulum swings, how many pendulum swings will it take to walk across the c...

how many pendulum swings will it take to walk across the classroom

Convert measurements between the english system, Convert measurements betwe...

Convert measurements between the English system? To convert measurements between the English system and the metric system: 1. Look up the conversion between the two units of

Equivalence class and equivalence relation, 1. For a function f : Z → Z, le...

1. For a function f : Z → Z, let R be the relation on Z given by xRy iff f(x) = f(y). (a) Prove that R is an equivalence relation on Z. (b) If for every x ? Z, the equivalenc

The length of the field is 2 more than twice the width field, Samantha owns...

Samantha owns a rectangular field that has an area of 3,280 square feet. The length of the field is 2 more than twice the width. What is the width of the field? Let w = the wid

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