Write a program to calculate and plot, MATLAB Programming

Assignment Help:

This problem is intended to demonstrate some problems that can arise from the finite precision of numerical calculations performed with computers.  We will do this by approximating the derivative of a function.  The definition of the derivative of the unction f(x) is:

944_Write a program to calculate and plot.png

We can approximate this with the computer by allowing ?x to be a finite number.  Thus, the numerical approximation to the derivative of the function can be determined from:

2218_Write a program to calculate and plot1.png

The error between the actual derivative and its approximation is dependent upon both x and ?x:

847_Write a program to calculate and plot2.png

Write a program to calculate and plot the error in the numerical estimate of the derivative according to equation (3), for the function

  (You may find the logspace command useful.)

Use logarithmic scales on both the x-axis and y-axis of your plot (you may find the MATLAB command loglog helpful).  Create a Microsoft Word document named homework8.doc and paste into it your plot of error vs. ?x.   Also in your MS Word document, comment on your results - especially relative to the behavior of the error as ?x increases.


Related Discussions:- Write a program to calculate and plot

Critical path method in matlab, i made graph using adjacent matrix i have t...

i made graph using adjacent matrix i have to find the critical path on that graph in matlab work can you please give me that code.

Illustration of a built-in function, Illustration of a built-in function: ...

Illustration of a built-in function: The length function is an illustration of a built-in function which computes a single value; it returns the length of a vector. As an illu

Gray level, Calculate the gray level value for all the pixels, Computer Gra...

Calculate the gray level value for all the pixels, Computer Graphics An 8x8 image f[i,j] has gray levels given by the following equation: f [i , j]= ? i-j ? ; i,j=0,1,2,3,4,5,6,7.

Matlab to produce numerical and analytical solutions, This assignment is mo...

This assignment is motivated by the use of flybys of planets / moons in spacecraft missions to alter a spacecraft's trajectory (flight path). Planetary flybys can be used to not on

Rc phase shift oscillater, design a rc phase shift oscillator for a particu...

design a rc phase shift oscillator for a particular frequency of oscillation and generate a sinusoidal signal

Looping statements, Looping Statements: Consider the problem of comput...

Looping Statements: Consider the problem of computing the area of a circle with radius of 0.3 centimeters-a MATLAB program certainly is not required to do that; you would use

#numerical Analysis, using newton divided diference formula find f(15) and ...

using newton divided diference formula find f(15) and f (8)

DC Motor, I need assignment to finish.

I need assignment to finish.

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