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

Probability rules, Probability Rules A probability is a number as...

Probability Rules A probability is a number assigned to the occurrence of an event in a sample space. Probability measures must satisfy three rules. If A is an even

Math World Problem, The ratio of gasoline to oil needed to run a chain-saw ...

The ratio of gasoline to oil needed to run a chain-saw is 16:1. If you have 3.5 mL of oil, how many millilitres of gasoline must you add to get the proper mixture?

Mathematical formulae, Mathematical Formulae (a ...

Mathematical Formulae (a + b) 2 = a 2 + b 2 + 2ab (a - b) 2 = a 2 + b 2 - 2ab (a + b) 2 +

Find the least number that is divisible by all numbers, Find the  leas...

Find the  least  number that  is  divisible by all  numbers between 1  and  10  (both inclusive). Ans: The required number is the LCM of 1,2,3,4,5,6,7,8,9,10 ∴ LCM = 2  × 2

Squeeze theorem (sandwich theorem and the pinching theorem), Squeeze Theore...

Squeeze Theorem (Sandwich Theorem and the Pinching Theorem) Assume that for all x on [a, b] (except possibly at x = c ) we have,                                 f ( x )≤ h (

Operation research, difference between scope and application of operation r...

difference between scope and application of operation research

Matrix inverse, Here we need to see the inverse of a matrix. Provided a squ...

Here we need to see the inverse of a matrix. Provided a square matrix, A, of size n x n if we can get the other matrix of similar size, B that, AB = BA = I n after that we call

Evaluate limit, Evaluate the given limit. Solution: In this quest...

Evaluate the given limit. Solution: In this question none of the earlier examples can help us. There's no factoring or simplifying to accomplish.  We can't rationalize &

Definition of inverse functions, Definition of inverse functions :  Given...

Definition of inverse functions :  Given two one-to-one functions f ( x ) and g ( x ) if ( f o g ) ( x ) = x  AND  ( g o f ) ( x ) = x then we say that f ( x ) & g ( x ) are i

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