%% YOURNAME (DUEDATE)
%
% *IMPORTANT:*
%
% Do not change *anything* in this header (besides your
% name and due date above as needed)!
%
% Put your solution to the exercise completely at the end
% of this file.
%
%%
% <latex>
% % for Octave, or for Matlab published to LaTeX for proclatex
% \input{../setup.tex}
% </latex>
%
%% FOR, IF, WHILE, Exercise 9

if ~exist('___code___','var') ; clear ; end
format compact
more off


%% EXERCISE DESCRIPTION:
%
% Sum the infinite sum
%
%      1/1 - 1/2 + 1/3 - 1/4 + 1/5 ...
%
% to a given tolerance and check that the answer is ln(2)
% to that tolerance as expected.


%% Additional file: Sum1AltTol.m
% <include>Sum1AltTol.m</include>


%% SOLUTION:


