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

Probability: determine the optimal strategy , On a picnic outing, 2 two-pe...

On a picnic outing, 2 two-person teams are playing hide-and-seek. There are four  hiding locations (A, B, C, and D), and the two members of the hiding team can hide separately in a

Write following in terms of simpler logarithms, Write following in terms of...

Write following in terms of simpler logarithms.  (a) log 3 (9 x 4    / √y) Solution log 3 (9 x 4 / √y) =log ­ 3 9x 4 -  log  y (1/2) =log ­ 3 9 + log ­ 3 x 4

Estimate weight if telephone pole weighs 11.5 pounds foot, If a telephone p...

If a telephone pole weighs 11.5 pounds per foot, how much does a 32-foot pole weigh? Multiply 11.5 by 32; 11.5 × 32 = 368 pounds.

Proof of constant times a function, Proof of Constant Times a Function: ...

Proof of Constant Times a Function: (cf(x))′ = cf ′(x) It is very easy property to prove using the definition given you a recall, we can factor a constant out of a limit. No

Hi, how do you find the distance between the sun and earth

how do you find the distance between the sun and earth

Explain venn diagrams, Q. Explain Venn diagrams? Ans. Venn diagram...

Q. Explain Venn diagrams? Ans. Venn diagrams, named after the Englishman John Venn, are "area" or "region" diagrams that can be used to help visualize and organize differe

Product moment coefficient (r), Product Moment Coefficient (r) ...

Product Moment Coefficient (r) This gives an indication of the strength of the linear relationship among two variables.                                     N

Factoring out the greatest common factor, Factoring out the greatest common...

Factoring out the greatest common factor of following polynomials.                    8x 4 - 4 x 3 + 10 x 2  Solution Primary we will notice that we can factor out a

Iit-jee questions, can u tell me a website for iit-jee questions?

can u tell me a website for iit-jee questions?

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