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

High self-esteem helps learning-how do children learn?, High Self-esteem He...

High Self-esteem Helps Learning :  Consider Ajay, a student of Class 2. He is constantly told by his irritated father, "How stupid you are! You don't even understand this! Even yo

The Bake Sale, Lindy has 48 chocolate chip cookies and 64 vanilla wafer coo...

Lindy has 48 chocolate chip cookies and 64 vanilla wafer cookies. How many bags can Lindy fill if she puts the chocolate chip cookies and the vanilla wafers in the same bag? She pl

Direction field for the differential equation, We require to check the deri...

We require to check the derivative thus let's use v = 60. Plugging it in (2) provides the slope of the tangent line as -1.96, or negative. Thus, for all values of v > 50 we will ha

Find the solution to initial value problem, Illustration:   Find the soluti...

Illustration:   Find the solution to the subsequent IVP. ty' + 2y = t 2 - t + 1,      y(1) = ½ Solution : Initially divide via the t to find the differential equation in

Example of integrals involving quadratics, Evaluate the following integral....

Evaluate the following integral. ∫√(x 2 +4x+5) dx Solution: Remind from the Trig Substitution section that to do a trig substitution here we first required to complete t

Division, How do i divide 200 by 4

How do i divide 200 by 4

What are factors, What are Factors? When you multiply several numbers t...

What are Factors? When you multiply several numbers together, (4 x 5 x 3), the numbers (4, 5, and 3) being multiplied are called factors. The result of the multiplying th

The cost of renting a bike at the local bike is y = 2x + 2, The cost of re...

The cost of renting a bike at the local bike shop can be represented through the equation y = 2x + 2, where y is the total cost and x is the number of hours the bike is rented. Whi

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