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

Adding fractions with different denominators, Q. How to Add Fractions with ...

Q. How to Add Fractions with Different Denominators? Ans. Here's the main thing to remember about adding fractions with different denominators-you can't! Fractions with di

Dimensions and degree of an expression, Binomials, Trinomials and P...

Binomials, Trinomials and Polynomials which we have seen above are not the only type. We can have them in a single variable say 'x' and of the form x 2 + 4

Some general facts about lines, First, larger the number (ignoring any minu...

First, larger the number (ignoring any minus signs) the steeper the line.  Thus, we can use the slope to tell us something regarding just how steep a line is. Next, if the slope

Shares and divident, A man invest ?13500 partly in shares paying 6% at ?140...

A man invest ?13500 partly in shares paying 6% at ?140 and partly in 5% at 125.If he is tolal income is 560, how much has he invested in each?

Product moment coefficient (r), Product Moment Coefficient (r) ...

Product Moment Coefficient (r) This gives an indication of the strength of the linear relationship among two variables.                                     N

Define markov chain, Define Markov chain Random processes with Markov ...

Define Markov chain Random processes with Markov property which takes separate values, whether t is discrete or continuous, are known as Markov chains.

Integration of sin ³a.cos ³a , writing sin 3 a.cos 3 a = sin 3 a.cos 2 a.co...

writing sin 3 a.cos 3 a = sin 3 a.cos 2 a.cosa = sin 3 a.(1-sin 2 a).cosa put sin a as then cos a da = dt integral(t 3 (1-t 2 ).dt = integral of t 3 - t 5 dt = t 4 /4-t 6 /6

Bcubi bui, hellow my name is isa soo what is your name?? i love the name ex...

hellow my name is isa soo what is your name?? i love the name experts mind so what is 8000+98800+600+935=what i do not know so can you tell me thank you oh thir is another one wha

One-to-one correspondence in learning maths, How does your answer to this q...

How does your answer to this question compare with mine, which follows? i) To begin with, 1 laid the beads out in a row for counting, so that I wouldn't leave any out or count a

Determine the second derivative of q (t ) = sec (5t ), Determine the secon...

Determine the second derivative for following functions.                             Q (t ) = sec (5t ) Solution : Following is the first derivative.              Q′ (t

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