% compare only eigenvalues, per 'adjusted' problem statement

A = [-2 -4 2 ; -2 1 2; 4 2 5];

B = [-40 -38 34; -10 -13 19; 62 19 67]/14;

eigsA = sort(eig(A));

eigsB = sort(eig(B));

eigsA - eigsB


