Question: A = np . array ( [ [ 1 , 4 ] , [ 1 , - 1 ] ] ) vals = np .

A = np.array([[1,4],[1,-1]])
vals = np.linalg.eigvals(A)
vecs = np.linalg.eig(A)
a11= vals[0]
a12= vecs[0][1]
a21= vecs[1][1]
a22= vals[1]
matrix_answer = np.array([[a11,a12],[a21,a22]])
print(matrix_answer)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!