Challenge: Linear Algebra Foundations #6 – An Equation involving Matrices

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

Scor cont: 5.0 / 5

Submission status: Accepted

Submission score: 1.0

Submission ID: 464733243

Limbaj: python3

Link challenge: https://www.hackerrank.com/challenges/linear-algebra-foundations-6-the-nsupthsup-power-of-a-matrix/problem

Cerinta

Given the following matrix $A$:  

                [1   1   0 ]
		  A =   [0   1   0 ]
                [0   0   1 ]
                
                


Calculate the real numbers $x$ and $y$ such that:

$A$<sup>2</sup>  + $x$$A$ + y$I$ = 0  ( $I$ is the 3 x 3 identity matrix)

In the text box below, enter the integers $x$ and $y$ each on a new line, respectively. Do not leave any leading or trailing spaces.

Cod sursa

print('-2\n1')
HackerRank Linear Algebra Foundations – Linear Algebra Foundations #6 – An Equation involving Matrices