You are on page 1of 2

1a.

SingleSumsImm
15.40368
1b.
DoubleSumsImm
18.9978964138477
1c. See Forward_Harmonic_Series.m
1d. This series appears to not be divergent because besides the answer in 1a, our
values we receive are all very close. However, we are only focusing in on one set of
data, so it is difficult to definitively say whether the series actually converges, which
it does not, based on our data.

2a.
SingleSumsImmb
18.80792
2b.
DoubleSumsImmb
18.9978964138532
2c. See Reverse_Harmonic_Series.m
2d. This series appears to not be divergent because besides the answer in 1a, our
values we receive are all very close. However, we are only focusing in on one set of
data, so it is difficult to definitively say whether the series actually converges, which
it does not, based on our data.

3. The differences in the data originate with truncation error. The programs are
unable to account for every decimal place as they carry out functions. Therefore,
they will round data appropriately as the summation process proceeds. Essentially,
the terms of each series were rounded in a different order due reversal of the series
bounds. This therefore accounts for the difference in results obtained from
Problems 1 and 2.
Practice Problem 2:
A: See sheet 2 on attached excel file.
B: See the MATLAB file PracticeProblem2.m
Analysis:
The results found in the attached files demonstrate two important results.
First, the accuracy of a number can affect the final result. In doing calculations in
previous courses, rounding error was never a big deal and was just accepted as a
fact of life. It was never accounted for that our calculators/computers could actually
be making mistakes in addition to our own rounding. The series calculations show
this important point. Also, the versatility of a user-defined function is also
demonstrated. The ability to define a function in VBA language and actively use it
in a spreadsheet can greatly reduce errors made when trying to compute longer
formulas within a spreadsheet. Also, it allows more complicated functions to be
described for use in a spreadsheet as well.

You might also like