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

Abels theorem, If y 1 (t) and y 2 (t) are two solutions to y′′ + p (t ) ...

If y 1 (t) and y 2 (t) are two solutions to y′′ + p (t ) y′ + q (t ) y = 0 So the Wronskian of the two solutions is, W(y 1 ,y 2 )(t) = =

Tchebyshev distance, Tchebyshev Distance (Maximum Travel Distance per Trip ...

Tchebyshev Distance (Maximum Travel Distance per Trip Using Rectilinear Distance): It can be calculated by using following formula: d(X, Pi) = max{|x - ai|, |y - bi|} (Source

Need some clarity?, THE % PARTICIPATION Feature in a major medical expense ...

THE % PARTICIPATION Feature in a major medical expense policy is 75% with a $100 deductible. how much of a $2,000 bill is the insured responsible for paying?

Calculate the profit, Lucas purchased his motorcycle for $5,875.98 and sold...

Lucas purchased his motorcycle for $5,875.98 and sold it for $7,777.77. What was his profit? To ?nd out the pro?t, you must subtract what Lucas paid for the motorcycle from the

Find the sides of the two squares, The sum of areas of two squares is 468m ...

The sum of areas of two squares is 468m 2  If the difference of their perimeters is 24cm, find the sides of the two squares. Ans:    Let the side of the larger square be x .

Basic concepts of second order differential equations, In this section we w...

In this section we will be looking exclusively at linear second order differential equations. The most common linear second order differential equation is in the type.  p (t ) y

How much can they deduct from childcare expenses, A family may deduct 24% o...

A family may deduct 24% of their childcare expenses from their income tax owed. If a family had $1,345 in childcare expenses, how much can they deduct? Find out 24% of $1,345 b

Find interval of function, Find interval for which the function f(x)=xe x(1...

Find interval for which the function f(x)=xe x(1-x)   is increasing or decreasing function

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