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

Functions with local variables, Functions with Local Variables: The fu...

Functions with Local Variables: The functions we have seen faraway have been very easy. Though, in many situations the computations in a function are more complex, and may nee

Matlab programming on johnson''s sequencing rule, i want matlab programming...

i want matlab programming on johnson''s sequencing rule

Characters and encoding, Characters and Encoding: A character in a MAT...

Characters and Encoding: A character in a MATLAB is represented by using single quotes (example, 'a' or 'x'). The quotes are essential to denote a character; without them, the

Expert system, how can i write a programm about maze solver expert system o...

how can i write a programm about maze solver expert system only with if & then

Wireless communication systems-matlab, Plot way forms for the following mod...

Plot way forms for the following modulation schemes using Matlab: a)      2 ASK                     b)  BFSK                                  c) BPSK          4 ASK

Illustration of a conditional loop, Illustration of a conditional loop - Wh...

Illustration of a conditional loop - While loop: As an illustration of a conditional loop, we will write a function which will find the first factorial which is greater than t

Ray tracing equations, i want to write a program in mat lab for optimizing ...

i want to write a program in mat lab for optimizing the design of lens help me how could i i am new user of matlab but previously i have work on C++.

Simulte the operation of the system, People arrive at a microscope exhibit ...

People arrive at a microscope exhibit at a rate of one every 8+/- 2 minutes. Only one person can see the exhibit at a time. It takes 5 +/- 2 minutes to see the exhibit. A person

Matlab programming vector algebra, Matlab Programming Vector Algebra : Crea...

Matlab Programming Vector Algebra : Create a program package for calculation of distances and intersections of lines and planes. Plot the results in a graphical representation

Error-checking user input in the while loop, Error-Checking user input in t...

Error-Checking user input in the While Loop: In many applications, whenever the user is prompted to enter anything, there is a valid range of values. When the user enters a wr

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