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

Adding fractions with the same denominator, Q. Adding Fractions with the Sa...

Q. Adding Fractions with the Same Denominator? Adding fractions with the same denominator is easy- you add the numerators (the tops), and you leave the denominator alone!

Differentiate product rule functions, Differentiate following functions. ...

Differentiate following functions. Solution At this point there in fact isn't a lot of cause to use the product rule.  We will utilize the product rule.  As we add

Fraction, in a garden 1/8 of the flowers are tulips. 1/4 of the tulips are ...

in a garden 1/8 of the flowers are tulips. 1/4 of the tulips are rd. what fraction of the flowers in the garden are red tulips

Example of mixing problems, A 1500 gallon tank primarily holds 600 gallons ...

A 1500 gallon tank primarily holds 600 gallons of water along with 5 lbs of salt dissolved into it. Water enters the tank at a rate of 9 gal/hr and the water entering the tank has

Basic indefinite integrals- computing indefinite integrals, Basic indefinit...

Basic indefinite integrals The first integral which we'll look at is the integral of a power of x.                                ∫x n dx = (x n +1 / n + 1)+ c,          n

How many people should she expect not to show, Laura is planning her weddin...

Laura is planning her wedding. She expects 230 people to attend the wedding, but she has been told that around 5% typically don't show. About how many people should she expect not

What is the integratin of 1/sin2x?, ∫1/sin2x dx = ∫cosec2x dx = 1/2 log[cos...

∫1/sin2x dx = ∫cosec2x dx = 1/2 log[cosec2x - cot2x] + c = 1/2 log[tan x] + c Detailed derivation of ∫cosec x dx = ∫cosec x(cosec x - cot x)/(cosec x - cot x) dx = ∫(cosec 2 x

What is slope of a line, What is Slope of a Line ? A line can have a "...

What is Slope of a Line ? A line can have a "steep" slope or a "gradual" slope. slope = rise/run The "rise" is the distance going up or down. The "run" is the distance goin

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