%% 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>
%
%% LINEAR ALGEBRA, Exercise 1

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


%% EXERCISE DESCRIPTION:
%
% Compute and plot power line sag.
%
% The equations to solve are:
%
%                h(1)        == H
%       h(1) - 2 h(2) + h(3) == rho/25^2
%       h(2) - 2 h(3) + h(4) == rho/25^2
%       h(3) - 2 h(4) + h(5) == rho/25^2
%       h(4) - 2 h(5) + h(6) == rho/25^2
%     2 h(5) - 2 h(6)        == rho/25^2
%
% where |H| and |rho| are 1.
%
% Later on, mess up the first equation into
%
%                h(1) - h(2) == 0
%
% and end up with a system that cannot be solved.
%
%% Hints
%
% * You should get a reasonably looking sagging half
% power line, with the center about 0.5 above the ground.
%
% * The modified matrix will be singular to machine
% precision.  On Octave, check also whether |h(1)| equals
% |h(2)| as we prescribed.  On Matlab, I did not get any
% numbers.


%% SOLUTION:


