Influence de w clear n = 10;A = rand(n,n);A=A *A;%A = A+eye(n);
{"Image DocumentName": "Influence de w clear n = 10;A = rand(n,n);A=A  A;%A = A+eye(n);", "Image ImageDescription": "xs = ones(n,1);b = A xs; t=cputime;xg = A\\b;tt = cputime-t; D = diag(diag(A)); E = tril(A,-1); F = triu(A,1); max(max(A-D-E-F)) w = 0.005:0.01:2; m = length(w) for i = 1:m. unsurw = 1/w(i); M = unsurw D+E; N = (unsurw-1) D-F; vp = eig(inv(M) N); rho(i) = max(conj(vp). vp); end. figure(1); subplot(2,1,1) h = plot(w,rho); set(h, LineWidth ,4); set(gca, FontSize ,14, FontName , Times , XTick ,[0 2], YTick ,[0 1], Box , on );ylabel( \\rho(M^{-1}N) ) title( rayon spectral de la matrice M^{-1}N ) ax = axis; axis([0 2 ax(3) (1+(1-ax(3))/8)]) grid. xlabel( \\omega )", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}