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

Determine the ratio in which the line 2x + y -4 = 0, Determine the ratio in...

Determine the ratio in which the line 2x + y -4 = 0 divide the line segment joining the points A (2,-2) and B (3, 7).Also find the coordinates of the point of division. [Ans:2 :

What is common triangles, Q. What is Common Triangles? Ans. Some t...

Q. What is Common Triangles? Ans. Some triangles appear more commonly than others. You will come across two triangles repeatedly as you learn more about trigonometry. T

Static or dynamic, Consider a discrete-time system that is characterized by...

Consider a discrete-time system that is characterized by the following difference equation: Y(n) = x(n)cos? 0 n, where ? 0  is constant value, x(n)are the discrete-time input

Find out the maximum number of ounces she can ship for $10, The cost of shi...

The cost of shipping a package by Shipping Express is $4.85 plus $2 per ounce of the weight of the package. Sally only has $10 to spend on shipping costs. Which of the subsequent c

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

If the roots of the equation (a-b) x 2 + (b-c) x+ (c - a)= 0 are equal. Prove that 2a=b+c. Ans:    (a-b) x 2 + (b-c) x+ (c - a) = 0 T.P 2a = b + c B 2 - 4AC = 0

Find the length and breadth of the rectangle, The area of a rectangle gets ...

The area of a rectangle gets decreased by 8 m2, if its length  is decreased by 5 m and breadth increased by 3 m. If we enhance  the length by 3 m and breadth by 2 m, the area is en

Find the area irrigated by this system, An irrigation system uses a straigh...

An irrigation system uses a straight 30m sprinkler pipe which is capped at one end and arranged so that all water is released directly downwards and pivots around a central point.

Linear algrebra, how do we solve multiple optimal solution

how do we solve multiple optimal solution

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