Let e = 10 2. Consider the matrix 1 2e e Problem 1: Find all the eigenvalues of
ID: 3209724 • Letter: L
Question
Let e = 10 2. Consider the matrix 1 2e e Problem 1: Find all the eigenvalues of A using the power iteration method and deflation Problem 2: Find all the eigenvalues of A using inverse power iteration method and translation. NOTE: you have to explain your choices of translations The codes below output the eigenvalues you need to compute. They can be used for the calculation purposes. However, you must not use them in your codes In 1inport nunpy as np inport nunpy. linalg as LA eps 1e-2 Ap array ([1,2 eps, eps], [3*eps, 2,0], [O, eps, 3]1) print (LA. eig (A) [0]) 0.99940186 2.00059664 3.0000015Explanation / Answer
Ans 1:
import numpy as np
import numpy.linalg
eps = 1e-2
A = np.array([[1,2*eps, eps],[3*eps,2,0],[0,eps,3]])
print power_iteration(A)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.