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

Simplex table, maximize Z=2x+5y+7z, subject to constraints : 3x+2y+4z =0

maximize Z=2x+5y+7z, subject to constraints : 3x+2y+4z =0

Trigonometry, if theta is a positive acute angle and 2sin theta +15cos squ...

if theta is a positive acute angle and 2sin theta +15cos square theta=7 then find the value of cot theta

Inverse functions, Inverse Functions : In the last instance from the pr...

Inverse Functions : In the last instance from the previous section we looked at the two functions   f ( x ) = 3x - 2 and g ( x ) = x /3+ 2/3 and saw that ( f o g ) ( x )

Angels, angel 1 and angel 2 are what angels?

angel 1 and angel 2 are what angels?

Calculate the probability, Data collected from the STATS 10x class survey o...

Data collected from the STATS 10x class survey one semester included responses to questions on the number of different sexual partners and on the number of pairs of shoes the stude

Find the normal to any point on the surface of convex lenses, Draw a tangen...

Draw a tangent on the lens where you want to find normal .Then line perpendicular to tangent gives normal at that point.

integral 0 to pi e^cosx cos (sinx) dx, Let u = sin(x). Then du = cos(x) dx...

Let u = sin(x). Then du = cos(x) dx. So you can now antidifferentiate e^u du. This is e^u + C = e^sin(x) + C.  Then substitute your range 0 to pi. e^sin (pi)-e^sin(0) =0-0 =0

Descrbe about arithmetic and geometric sequences, Descrbe about Arithmetic ...

Descrbe about Arithmetic and Geometric Sequences? When numbers are listed according to a particular pattern, we call the list a sequence. In a sequence, the numbers are separat

Abstract Algebra, let R be a (noncommutative) ring. Given that a,b and a+b ...

let R be a (noncommutative) ring. Given that a,b and a+b ? R are all units, prove that a^(-1)+b^(-1) is a unit

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