//Example 11.11 //Generalized Eigenvalue Problem //Page no. 365 clc;close;clear; A=[1,1,0.5;1,1,0.25;0.5,0.25,2] B=[2,2,2;2,5,5;2,5,11] disp(B,"B =",A,"A =") for i=1:3 G(i,i)=sqrt(B(i,i)) end G=[B;eye(3,3)]; //transformation to frobenius matrix for k=3:-1:2 g(k)=0; for j=1:k-1 if(g(k)