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

Euler method for ode, y'' + 2y = 2 - e-4t, y(0) = 1 use euler''s method wit...

y'' + 2y = 2 - e-4t, y(0) = 1 use euler''s method with a step size of 0.2 to find and approximate values of y

Area, #What is an easy way to find the area of any figure

#What is an easy way to find the area of any figure

To find out the perimeter of a triangular give formula, To find out the per...

To find out the perimeter of a triangular region, what formula would you use? The perimeter of a triangle is length of surface a plus length of side b plus length of side c.

Co-prime positive integers, A group of 5 people are going to meet weekly at...

A group of 5 people are going to meet weekly at the library for 4 weeks. Every week, two people are selected at random to speak. Every person may speak in multiple weeks, but no pa

Steps for alternating series test, Steps for Alternating Series Test Su...

Steps for Alternating Series Test Suppose that we have a series ∑a n and either a n = (-1) n b n or a n = (-1) n+1 b n where b n > 0 for all n.  Then if,   1.

What is equivalent of this temperature in degrees fahrenheit, The temperatu...

The temperature in Hillsville was 20° Celsius. What is the equivalent of this temperature in degrees Fahrenheit? This problem translates to the expression 3 {[2 - (-7 + 6)] + 4

Ronding off numbers, how to round off numbers to the nearest tens and to th...

how to round off numbers to the nearest tens and to the nearest hundred

Determine all possible solutions to ivp, Determine all possible solutions t...

Determine all possible solutions to the subsequent IVP. y' = y ? y(0) = 0 Solution : First, see that this differential equation does NOT satisfy the conditions of the th

Travel time, you are driving on a freeway to a tour that is 500 kilometers ...

you are driving on a freeway to a tour that is 500 kilometers from your home. after 30 minutes , you pass a freeway exit that you know is 50 kilometer from your home. assuming that

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