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 of laplace transforms, You know that it's all the time a little ...

You know that it's all the time a little scary while we devote an entire section just to the definition of something. Laplace transforms or just transforms can appear scary while w

find the vector projection - vectors, Given the vectors u = 3 i - 2 j ...

Given the vectors u = 3 i - 2 j + k ,   v = i + 2 j - 4 k ,    w = -2 i + 4 j - 5 k use vector methods to answer the following: (a) Prove u , v and w can form

Solution by factorization, Solution by Factorization, please solve quadrati...

Solution by Factorization, please solve quadratic equations by Factorization.

Determine the widest piece of mail, A mailbox opening is 4.5 inches high an...

A mailbox opening is 4.5 inches high and 5 inches wide. Determine the widest piece of mail able to ?t in the mailbox without bending? a. 9.5 inches b. 2.2 inches c. 6.7 in

Elementary row operations, Anne, Betty and Carol went to their local produc...

Anne, Betty and Carol went to their local produce store to buy some fruit. Anne bought one pound of apples and two pounds of bananas and paid $2.11. Betty bought two pounds of appl

Fourier series - partial differential equations, Fourier series - Partial D...

Fourier series - Partial Differential Equations One more application of series arises in the study of Partial Differential Equations.  One of the more generally employed method

Continuity, give me some examples on continuity

give me some examples on continuity

Function composition, Function composition: The next topic that we have to...

Function composition: The next topic that we have to discuss here is that of function composition. The composition of f(x) & g(x) is ( f o g ) ( x ) = f ( g ( x )) In other

Find out the minimum distance from the origin, Problem 1. Find the maximum...

Problem 1. Find the maximum and the minimum distance from the origin to the ellipse x 2 + xy + y 2 = 3. Hints: (i) Use x 2 + y 2 as your objective function; (ii) You c

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