Soluție HackerRank pentru Eigenvalue of matrix #4, subdomeniul Linear Algebra Foundations, în Python 3. Include cerința formatată, exemple, explicația…

  • Problemă: Eigenvalue of matrix #4
  • Domeniu: Linear Algebra Foundations
  • Limbaj: Python 3

Challenge: Eigenvalue of matrix #4

Subdomeniu: Linear Algebra Foundations (linear-algebra-foundations)

Scor cont: 5.0 / 5

Submission status: Accepted

Submission score: 1.0

Submission ID: 464733237

Limbaj: python3

Link challenge: https://www.hackerrank.com/challenges/eigenvalues-of-matrix-4/problem

Cerință

Find the eigenvalues and eigenvectors of A<sup>-1</sup> and A - 4I where I is identity matrix and A is:

Screenshot from 2015-10-18 21:39:32.png

Your answer should have the eigenvalues of A<sup>-1</sup> followed by eigenvalues of A - 4I each on a new line (with the smaller value coming first, for each pair):

<pre>
5
6
2
3
</pre>

Cod sursă

print('1/3\n1\n-3\n-1')
HackerRank Linear Algebra Foundations – Eigenvalue of matrix #4