%% 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 1

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


%% EXERCISE DESCRIPTION:
%
% Use function |DrumFreqEqError| to find a number of
% frequencies of vibration when |k| = 2.  Print them out
% nicely.
%
%% Hints
%
% * The correct solution to the original exercise should
% already be posted.  Just modify it so that it uses
% |for| loops instead of separate code for each root.
%
% * Define |nMax| as the maximum value of the frequency
% number |n| to print out.  Then print out the
% frequencies from 1 to |nMax| using both the guessed
% value and range methods.  But to do so, use a |for|
% loop instead of brute force for each method.  Inside
% each |for| loop, the solution will look much like for
% printing a single root before, but with the root number
% replaced by |n|.
%
% * It should work correctly for whatever |nMax| is set
% to, without changing anything else than |nMax|.
%
% * Test that you get the same results as before when
% |nMax| is set to 4.  Then, for the results to be handed
% in, set |nMax| to 9.
%
% * The script should be much shorter and much more
% readable than it was, even though you are printing out
% more than double the number of frequencies.


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


%% SOLUTION:


