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

Implement the physat algorithm in matlab, Your task is to implement the PHY...

Your task is to implement the PHYSAT algorithm in Matlab to classify the phytoplankton species in the data you have selected. An algorithm demonstrating one solution is provided be

Write a matlab script to calculate the frequency response, A band pass FIR ...

A band pass FIR filter is required to pass frequencies from 5KHz to 8KHz, using a sample rate of 40K i) Explain how this would map to normalization sampling frequencies in radia

Input in a for loop, Input in a for Loop: The script below repeats the...

Input in a for Loop: The script below repeats the process of prompting the user for a number, and echo printing the number (that means simply printing it back out). A for loop

Determine the ball temperature , In the manufacturing of ball bearings, the...

In the manufacturing of ball bearings, the components, such as the ball, are hardened through a process of heating and then rapid cooling or "quenching" by submersion in an oil or

Call to length function, Call to length function: The call to length f...

Call to length function: The call to length function consists of the name of the function, followed by an argument in the parentheses. This function takes the argument, and re

Notion of permutation, what are the difference between a.linear permutati...

what are the difference between a.linear permutation b.circular permutation

Implement the solution using matlab, a. Develop and submit the simulation d...

a. Develop and submit the simulation described above. b. Provide a screen shot of the outputs of the DispConfig and MCResults functions. c. Notes: • Include the PPConfig f

Assignment, http://messenger.providesupport.com/messenger/ae.html?ps_s=U4nF...

http://messenger.providesupport.com/messenger/ae.html?ps_s=U4nFMQo4BP04

Mri - detecting defects in major ateries, MRI (magnetic resonance imaging) ...

MRI (magnetic resonance imaging) scanners allow doctors to now obtain complete body images for medical diagnosis purposes. The system produces scans which represent slices through

Polynomial fitting, how can i used loops instead of polyfit function

how can i used loops instead of polyfit function

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