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

Statistics, what is meant by "measure of location"

what is meant by "measure of location"

Which of the subsequent numbers is equivalent to 12.087, Which of the subse...

Which of the subsequent numbers is equivalent to 12.087? Zeros can be added to the end (right) of the decimal portion of a number without changing the value of the number; 12.

Pair of straight line, The equation ax2 + 2hxy + by2 =0 represents a pair o...

The equation ax2 + 2hxy + by2 =0 represents a pair of straight lines passing through the origin and its angle is tan q = ±2root under h2-ab/(a+b) and even the eqn ax2+2hxy+by2+2gx+

Differentiate inverse tangent functions, Differentiate the following functi...

Differentiate the following functions. (a) f (t ) = 4 cos -1 (t ) -10 tan -1 (t ) (b)  y = √z sin -1 ( z ) Solution (a) Not much to carry out with this one other

Decimal representations of some basic angles, Decimal representations of so...

Decimal representations of some basic angles: As a last quick topic let's note that it will, on occasion, be useful to remember the decimal representations of some basic angles. S

Word problems involving money, Word Problems Involving Money: The prom...

Word Problems Involving Money: The promoter of a track meet engages a 6,000 seat armory.  He needs to gross $15,000. The price of children's tickets is to be one-half the pric

Identify the flaw in the argument, Identify the flaw in the following argum...

Identify the flaw in the following argument which supposedly determines that n 2 is even when n is an even integer. As well name the reasoning:             Assume that n 2 is

#permutation, #The digits 1,2,3,4and 5 are arranged in random order,to form...

#The digits 1,2,3,4and 5 are arranged in random order,to form a five-digit number. Find the probability that the number is a. an odd number. b.less than 23,000

What is the prime factorization of 84, What is the prime factorization of 8...

What is the prime factorization of 84? This is the only answer choice which has only PRIME numbers. A prime number is a number along with two and only two distinct factors. In

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