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

Cerinta

Find the eigenvalues and eigenvectors of **A<sup>-1</sup>** and **A - 4I** where **I** is identity matrix and **A** is:
<img src="https://s3.amazonaws.com/hr-challenge-images/0/1445184582-dc6dfbe48f-Screenshotfrom2015-10-18213932.png" title="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 sursa

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