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

Boundary value problem, solve the in-homogenous problem where A and b are c...

solve the in-homogenous problem where A and b are constants on 0 ut=uxx+A exp(-bx) u(x,0)=A/b^2(1-exp(-bx)) u(0,t)=0 u(1,t)=-A/b^2 exp(-b)

Student, What is the slope and y intercept for (6,5) (-3,8)

What is the slope and y intercept for (6,5) (-3,8)

Power regression, how can i solve a multi variable power regression equatio...

how can i solve a multi variable power regression equation..? EX: y=a*(x1^b)*(x2^c).... i need to solve with 4 variable....

Positive real exponents, Simplify following and write the answers with only...

Simplify following and write the answers with only positive exponents.  (a) ( x 8.2 y -0.26 z 2 ) 0.5  (b)  (x 3 y -4.1   / x -2.7 ) -3 Solution  (a) (x 8.2

The hundredths digit is 4 and the tenths digit is twice, Which number below...

Which number below is described by the following statements? The hundredths digit is 4 and the tenths digit is twice the thousandths digit. a. 0.643 b. 0.0844 c. 0.446 d. 0.0142

Precal, The law of cosines can only be applied to acute triangles. Is this ...

The law of cosines can only be applied to acute triangles. Is this true or false?

Introducing counting, INTRODUCING COUNTING : From what you studied previou...

INTRODUCING COUNTING : From what you studied previous study, you know what it means to count. You would also agree that rote learning of number names does not always mean that the

Linear programming, #question.As office manager of her firm, Marcellyne has...

#question.As office manager of her firm, Marcellyne has been directed to buy new filing cabinets. She knows that cabinet A costs $10, requires 6 square feet of floor space, and hol

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