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

Calculate magnitude and direction of maximum principle, At a point in a loa...

At a point in a loaded member, the stresses relative to an x, y, z coordinate system are given by Calculate the magnitude and direction of the maximum principal stress.

Mathematical model representing the total parking cost, John has a choice o...

John has a choice of using one of two parking garages when he visits downtown: Option1:  $8 an hour for the first two hours, then $2 and hour for each hour more than 2; or Op

Operations research, Explain Analytical Models in Operations Research with ...

Explain Analytical Models in Operations Research with Application

Prove that xa+ar=xb+br of circle, In figure, XP and XQ are tangents from X ...

In figure, XP and XQ are tangents from X to the circle with centre O. R is a point on the circle. Prove that XA+AR=XB+BR Ans:    Since the length of tangents from externa

Which kevin gets paid is represented by x what does paid, Patrick gets paid...

Patrick gets paid three dollars less than four times what Kevin gets paid. If the number of dollars which Kevin gets paid is represented through x, what does Patrick get paid?

Probability, There are 20 defective bulbs in a box of 100 bulbs.if 10bulbs ...

There are 20 defective bulbs in a box of 100 bulbs.if 10bulbs are choosen at random then what is the probability of there are just 3defective bulbs

Determine the slope, Determine the slope following lines.  Sketch the graph...

Determine the slope following lines.  Sketch the graph of line.       The line which contains the two points (-2, -3) and (3, 1) .   Solution we'll need to do is employ

Pair of straight line, a pair of straight lines are drawn through the origi...

a pair of straight lines are drawn through the origin forms with the line 2x+3y=6 an isoceles triangle right angled at origin find the equation of pair of straight line?

Skewness-measure of central tendency, Skewness - It is a concept which...

Skewness - It is a concept which is normally used in statistical decision making. This refers to the degree whether a described frequency curve is deviating away from the gene

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