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

Evaluating a function, Evaluating a Function You evaluate a function by...

Evaluating a Function You evaluate a function by "plugging in a number". For example, to evaluate the function f(x) = 3x 2 + x -5 at x = 10, you plug in a 10 everywhere you

Prove that 2b3-3abc+a2d=0, If  the  ratios  of  the  polynomial ax 3 +3bx...

If  the  ratios  of  the  polynomial ax 3 +3bx 2 +3cx+d  are  in  AP,  Prove  that  2b 3 -3abc+a 2 d=0 Ans: Let p(x) = ax 3 + 3bx 2 + 3cx + d and α , β , r are their three Z

Solid geometry, what is solid geometry and uses of solid geometry

what is solid geometry and uses of solid geometry

Indices, 4n to the power 3/2 = 8 to the power minus 1/3. find the value of ...

4n to the power 3/2 = 8 to the power minus 1/3. find the value of n.

Determine probability , You are going on a road trip and you buy snack pack...

You are going on a road trip and you buy snack packs and three different kind of beverages.  You buy 7 Cokes, 5 Pepsis and 4 Dr. Peppers.  You pull out two beverages at random.  An

Continuous random variable, Continuous Random Variable In the probabili...

Continuous Random Variable In the probability distribution the sum of all the probabilities was 1. Consider the variable X denoting "Volume poured into a 100cc cup from coff

Break even point, what is break even point and how can it helps managers to...

what is break even point and how can it helps managers to make decisions?

Interpretation, Interpretation A high value of r as +0.9 or - 0...

Interpretation A high value of r as +0.9 or - 0.9 only shows a strong association among the two variables but doesn't imply that there is a causal relationship that is

Example on abels theorem, Without solving, find out the Wronskian of two so...

Without solving, find out the Wronskian of two solutions to the subsequent differential equation. t 4 y'' - 2t 3 y' - t 8 y = 0 Solution : First thing that we want to d

What is geometry formula to estimate distance, Danielle requires knowing th...

Danielle requires knowing the distance around a basketball court. What geometry formula will she use? The perimeter of a rectangle is two times the length plus two times the wi

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