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

Give the examples in real world of proportions , Give the Examples in Real ...

Give the Examples in Real World of Proportions? Proportions can be used in cooking. For example, the following is a set of ingredients for a pasta called "Spaghetti All' Amatri

Determine the solution to initial value problem, Find the solution to the s...

Find the solution to the subsequent IVP. ty' - 2y = t 5 sin(2t) - t 3 + 4t 4 , y (π) = 3/2 π 4 Solution : First, divide by t to find the differential equation in the accu

Regression model, Consider the regression model  Y i = a + bX i + u i ,  ...

Consider the regression model  Y i = a + bX i + u i ,  where the  X i   are non-stochastic and the  u i   are independently and identically distributed with  E[u i ] = 0  and  va

Difference between absolute and relative in the definition, Difference betw...

Difference between absolute and relative in the definition Now, let's talk a little bit regarding the subtle difference among the absolute & relative in the definition above.

How many inches is the smaller dimension of the decreased, A photographer d...

A photographer decides to decrease a picture she took in sequence to fit it within a certain frame. She requires the picture to be one-third of the area of the original. If the ori

Polynomial : f(x).f(1/x), A polynomial satisfies the following relation f(x...

A polynomial satisfies the following relation f(x).f(1/x)= f(x)+f(1/x). f(2) = 33. fIND f(3) Ans) The required polynomial is x^5 +1. This polynomial satisfies the condition state

Regression - measures of relationships, Regression - Measures of Relationsh...

Regression - Measures of Relationships - It is a concept that refers to the changes which happen in the dependent variable as a result of changes happens on the independent va

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