from math import * import numpy as np import matplotlib.pyplot as plt

from math import * import numpy as np import matplotlib.pyplot as plt import numpy.linalg as alg from numpy.polynomial import. Polynomial.
16KB taille 9 téléchargements 377 vues
from math import * import numpy as np import matplotlib.pyplot as plt import numpy.linalg as alg from numpy.polynomial import Polynomial A=(1/256)*np.array([[-86280,56 197,-2304,-40452,65542], [-60432,39306,-1792,-27912,458 36], [15320,-10215,256,7660,-11490] , [37616,-24438,768,17912,-28660 ], [-38408,25093,-1024,-18180,291 90]]) B=alg.eigvals(A) C=[complex(1,0),complex(0,1),c omplex((4-sqrt(17))/16,0)] ''' for x in C: b=False for y in B: if abs(y-x)