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

Definition and fact of the shape of a graph, Definition 1.   Given any ...

Definition 1.   Given any x 1  & x 2   from an interval  I with x 1 2  if f ( x 1 ) 2 ) then f ( x ) is increasing on I. 2.   Given any x 1  & x 2  from an interval

Unit normal vector - three dimensional space, Unit Normal Vector - Three Di...

Unit Normal Vector - Three Dimensional Space The unit normal vector is illustrated to be, N (t) = → T' (t) / (|| T → ' (t)||) The unit normal is orthogonal or normal or

Describe independent events in maths, Describe Independent Events in maths?...

Describe Independent Events in maths? Events are independent if the outcome of one event does not affect the outcome of the second event. If A represents one independent event

Plane figures, what are the formulas for finding the area and volume of pla...

what are the formulas for finding the area and volume of plane figures

Indicestitle.., Advantages and disadvantages of paasche indices

Advantages and disadvantages of paasche indices

Matrix of r, Let R be the relation on S = {1, 2, 3, 4, 5} defined by R =...

Let R be the relation on S = {1, 2, 3, 4, 5} defined by R = {(1,3); (1, 1); (3, 1); (1, 2); (3, 3); (4, 4)}. (b) Write down the matrix of R. (c) Draw the digraph of R.

Operation research, approximate the following problem as a mixed integer pr...

approximate the following problem as a mixed integer program. maximize z=e-x1+x1+(x2+1)2 subject to x12+x2 =0

Pair of straight line, The equation ax2 + 2hxy + by2 =0 represents a pair o...

The equation ax2 + 2hxy + by2 =0 represents a pair of straight lines passing through the origin and its angle is tan q = ±2root under h2-ab/(a+b) and even the eqn ax2+2hxy+by2+2gx+

Harmonic mean, If a, b and c are in harmonic progression with b as th...

If a, b and c are in harmonic progression with b as their harmonic mean then, b  = This is obtained as follows. Since a, b and c are in

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