Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

you used Matlab to integrate a section of a cosine wave using a large number of

ID: 737944 • Letter: Y

Question

you used Matlab to integrate a section of a cosine wave using a
large number of thin rectangles. If you used the default Matlab settings, your
script returned the exact to within five significant digits. Determine the minimum
number of steps needed to obtain various levels of accuracy.
Define the accuracy as:
Accuracy=(Value Calculated By the Script)?(Analytical Solution)
To three significant digits, give the smallest number of steps (passes of the "for"
loop) for which accuracy is:
a) 100%
b) 99%
c) 90%

Explanation / Answer

a) 100%