411 REFERENCE · Wikibooks
Linear Algebra and the C Language/a0ol
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
__NOTOC__
The eigenvalues of sA correspond to the eigenvalues of A multiplied by s:
Copy/Paste into the octave window
% The eigenvalues of sA correspond to the eigenvalues of A multiplied by s:
clear, clc
n = 3;
s = 2;
A = round(10*randn(n)); %% A matrix nxn
A = A'*A %% A symetric matrix
sA = s.*A
% Eigenvalues
printf (" %0.f.*eigs(A) = \n",s)
s.*eigs( A)
printf (" eigs(%0.f.*A) =\n",s)
eigs(sA)
%%
Screen output example:
A =
984 496 -196
496 754 -434
-196 -434 339
sA =
1968 992 -392
992 1508 -868
-392 -868 678
2.*eigs(A) =
3067.06
985.89
101.05
eigs(2.*A) =
3067.06
985.89
101.05