Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Linear Algebra and the C Language/a0om

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

__NOTOC__ The eigenvalues ​​of A + sID correspond to the eigenvalues ​​of A plus s: Copy/Paste into the octave window % The eigenvalues ​​of A + sID correspond to the eigenvalues ​​of A plus s: clear, clc n = 3; s = 2; A = round(10*randn(n)); %% A matrix nxn A = A'*A %% A symetric matrix % Eigenvalues printf (" %0.f.+eigs(A) = \n",s) s.+ eigs(A) printf (" eigs(A + %0.f.*ID) =\n",s) eigs(A + (s.*eye(n))) %% Screen output example: A = 302 97 45 97 41 28 45 28 193 2.+eigs(A) = 352.953 179.024 10.023 eigs(A + 2.*ID) = 352.953 179.024 10.023