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

Prove that cos - sin = v2 sin , If cos?+sin? = √2 cos?, prove that cos? - ...

If cos?+sin? = √2 cos?, prove that cos? - sin? =  √2 sin ?. Ans:    Cos? + Sin? =  √2 Cos? ⇒ ( Cos? + Sin?) 2  = 2Cos 2 ? ⇒ Cos 2 ? + Sin 2 ?+2Cos? Sin? = 2Cos 2 ? ⇒

Example of integrals involving root - integration technique, Evaluate the f...

Evaluate the following integral. ∫ (x+2 / 3√(x-3)) (dx) Solution Occasionally while faced with an integral that consists of a root we can make use of the following subs

Quadratic Equation, Short Cuts for solving quadratic equations

Short Cuts for solving quadratic equations

Unite Ratet, How does finding the unit rate help make smart decisions?

How does finding the unit rate help make smart decisions?

Five shirts and one tie cost $20 what price of one shirt, Three shirts and ...

Three shirts and five ties cost $23. Five shirts and one tie cost $20. What is the price of one shirt? Let x = the cost of one shirt. Let y = the cost of one tie. The ?rst part

Solving trig equations, Solving Trig Equations : Here we will discuss on s...

Solving Trig Equations : Here we will discuss on solving trig equations. It is something which you will be asked to do on a fairly regular basis in my class. Let's just see the

Vb code, some basic vb codes withing excel to get things done quickly.

some basic vb codes withing excel to get things done quickly.

Find out that the relation is an equivalent relation or not, Let m be a pos...

Let m be a positive integer with m>1. Find out whether or not the subsequent relation is an equivalent relation. R = {(a,b)|a ≡ b (mod m)} Ans: Relation R is illust

Conic sections, The locus of the midpoint of the chords of an ellipse which...

The locus of the midpoint of the chords of an ellipse which are drawn through an end of minor axis is called

Algebra, please tell me what is algebra and how i can understand it

please tell me what is algebra and how i can understand it

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