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

Compute the linear convolution, Compute the linear convolution of the discr...

Compute the linear convolution of the discrete-time signal x(n) ={3, 2, 2,1} and the impulse response function of a filter h(n) = {2, 1, 3} using the DFT and the IDFT.

Find a longest common substring - suffix trees, 1. Using suffix trees, give...

1. Using suffix trees, give an algorithm to find a longest common substring shared among three input strings: s 1 of length n 1 , s 2 of length n 2 and s 3 of length n 3 .

Example of multiplication, Example 1: Multiply 432 by 8. Solution: ...

Example 1: Multiply 432 by 8. Solution:        432 ×        8 --------------       3,456 In multiplying the multiplier in the units column to the multiplica

Derivatives of trig functions, Derivatives of Trig Functions In this s...

Derivatives of Trig Functions In this section we will see derivatives of functions other than polynomials or roots of polynomials. We'll begin this process off through taking

Problem word solving, Mrs. Jones and Mr. Graham had the same amount of mone...

Mrs. Jones and Mr. Graham had the same amount of money at first. After Mrs. Jones bought a computer that cost $2,055, she had 1/4 as much money as Mr. Graham. How much money di

G .E matrix, using the g.e matrix, how can you turn an unattractive product...

using the g.e matrix, how can you turn an unattractive product to be attractive

What is probability that a person selected at random eyes, If 65% of the po...

If 65% of the populations have black eyes, 25% have brown eyes and the remaining have blue eyes. What is the probability that a person selected at random has (i) Blue eyes (ii) Bro

Calculate subsequent proportion, Calculate subsequent proportion: A re...

Calculate subsequent proportion: A recipe calls for 1(1/2) cups of flour to make servings for 6 people.  How much flour should be used to make servings for 4 people? Solut

How does a child think-knowing your maths learner, HOW DOES A CHILD THINK? ...

HOW DOES A CHILD THINK? :  You must have interacted with children of various ages. From your experience, do you feel that children start learning, from a very early age, and conti

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