% test out simultaneous changes for example given in class
!rm oct8log.txt
echo on
diary oct8log.txt
A_Bi=[ 1 0 -1               % inverse basis matrix
1 1 -3
-1 0 2];
b=[36;32;22];               %  RHS
eps1=-2+rand*10;            % random element in range of b_1
eps2=-2+(1/rand);         % random element in range of b_2
eps3=-4+rand*(4+2/3);         % random element in range of b_3
disp(['random elements in the 3 intervals are :',num2str([eps1 eps2 eps3])]);
theta=rand(3,1);
theta=theta/sum(theta);      % constants for convex combination
deltab=theta.*[eps1 eps2 eps3]'
newbbar=A_Bi*(b+deltab)
diary off
echo off
