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

Use mathematical induction and prove equation, 1. Use mathematical inductio...

1. Use mathematical induction to prove whenever n is a positive integer. 2. Use loop invariant to prove that the program for computing the sum of 1,...,n is correct.

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

Solving trig equations with calculators, Solving Trig Equations with Calcul...

Solving Trig Equations with Calculators, Part I : The single problem along with the equations we solved out in there is that they pretty much all had solutions which came from a

Show that a, If the roots of the equation (b-c)x 2 +(c-a)x +(a-b) = 0 are ...

If the roots of the equation (b-c)x 2 +(c-a)x +(a-b) = 0 are equal show that a, b, c are in AP. Ans:    Refer sum No.12 of Q.E. If (b-c)x 2 + (c-a) x + (a-b) x have equ

Scalar equation of plane - three dimensional spaces, Scalar Equation of Pla...

Scalar Equation of Plane A little more helpful form of the equations is as follows. Begin with the first form of the vector equation and write a vector for the difference. {

.fractions, what is the difference between North America''s part of the tot...

what is the difference between North America''s part of the total population and Africa''s part

Simple derivatives, Simple derivatives Example   Differentiate followin...

Simple derivatives Example   Differentiate following.  (5x 3   - 7 x + 1) 5 ,[ f ( x )] 5 ,[ y ( x )] 5 Solution: Here , with the first function we're being asked to

Estimate round to the nearest tenth of an inch, One inch equals 2.54 centim...

One inch equals 2.54 centimeters. The dimensions of a table made in Europe are 85 cm huge by 120 cm long. What is the width of the table in inches? Round to the nearest tenth of an

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