% data for Exercise Set 8.1

ex = input('Exercise number (1-24)? ');

if ex==1
   A = [3 5;5 -7] 
elseif ex==2
   A = [-3 5;-5 3] 
elseif ex==3
   A = [2 2;4 4] 
elseif ex==4
   A = [0 8 3;8 0 -2;3 -2 0] 
elseif ex==5
   A = [-6 2 0;0 -6 2;0 0 -6] 
elseif ex==6
   A = [1 2 1 2;2 1 2 1;1 2 1 2] 
elseif ex==7
   A = [.6 .8;.8 -.6] 
elseif ex==8
   A = [1/sqrt(2) -1/sqrt(2);1/sqrt(2) 1/sqrt(2)] 
elseif ex==9
   A = [-5 2;2 5] 
elseif ex==10
   A = [-1 2 2;2 -1 2;2 2 -1] 
elseif ex==11
   A = [2/3 2/3 1/3;0 1/sqrt(5) -2/sqrt(5);5/(3*sqrt(5)) -4/(3*sqrt(5)) -2/(3*sqrt(5))] 
elseif ex==12
   A = [.5 .5 -.5 -.5;-.5 .5 -.5 .5;.5 .5 .5 .5;-.5 .5 .5 -.5] 
elseif ex==13
   A = [3 1;1 3] 
elseif ex==14
   A = [1 5;5 1] 
elseif ex==15
   A = [16 -4;-4 1] 
elseif ex==16
   A = [-7 24;24 7] 
elseif ex==17
   A = [1 1 3;1 3 1;3 1 1] 
elseif ex==18
   A = [-2 -36 0;-36 -23 0;0 0 3] 
elseif ex==19
   A = [3 2 0;2 4 2;0 2 5] 
elseif ex==20
   A = [7 -4 4;-4 5 0;4 0 9] 
elseif ex==21
   A = [3 1 1;1 3 1;1 1 3] 
elseif ex==22
   A = [5 -4 -2;-4 5 2;-2 2 2] 
elseif ex==23
   A = [2 0 1 0;0 2 0 1;1 0 2 0;0 1 0 2] 
elseif ex==24
   A = [2 0 0 0;0 1 0 1;0 0 2 0;0 1 0 1] 
else
   disp('No data for this exercise in Section 8.1.')
end
