Soluție HackerRank pentru Linear Algebra Foundations #6 - An Equation involving Matrices, subdomeniul Linear Algebra Foundations, în Python 3. Include…

  • Problemă: Linear Algebra Foundations #6 - An Equation involving Matrices
  • Domeniu: Linear Algebra Foundations
  • Limbaj: Python 3

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

Cerință

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> + xA + yI = 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 sursă

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