% data for Exercise Set 4.7

ex = input('Exercise number (7-10, 17-19)? ');

if ex==7
   b1 = [7;5], b2 = [-3;-1], c1 = [1;-5], c2 = [-2;2] 
elseif ex==8
   b1 = [-1;8], b2 = [1;-5], c1 = [1;4], c2 = [1;1] 
elseif ex==9
   b1 = [-6;-1], b2 = [2;0], c1 = [2;-1], c2 = [6;-2] 
elseif ex==10
   b1 = [7;-2], b2 = [2;-1], c1 = [4;1], c2 = [5;2] 
elseif ex==17
   P = [1 0 -1 0 1 0 -1;0 1 0 -3 0 5 0;0 0 2 0 -8 0 18;0 0 0 4 0 -20 0;
        0 0 0 0 8 0 -48;0 0 0 0 0 16 0;0 0 0 0 0 0 32]
elseif ex==18
   P = [1 0 -1 0 1 0 -1;0 1 0 -3 0 5 0;0 0 2 0 -8 0 18;0 0 0 4 0 -20 0;
        0 0 0 0 8 0 -48;0 0 0 0 0 16 0;0 0 0 0 0 0 32]
elseif ex==19
   P = [1 2 -1;-3 -5 0;4 6 1], v1 = [-2;2;3], v2 = [-8;5;2], v3 = [-7;2;6]   
else
   disp('No data for this exercise in Section 4.7.')
end
