Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import numpy.linalg as npl
- C1 = np.matrix([[1, 1/7, 1/5], [7, 1, 3], [5, 1/3, 1]])
- C2 = np.matrix([[1, 5, 9], [1/5, 1, 4], [1/9, 1/4, 1]])
- C3 = np.matrix([[1, 4, 1/5], [1/4, 1, 1/9], [5, 9, 1]])
- C4 = np.matrix([[1, 9, 4], [1/9, 1, 1/4], [1/4, 4, 1]])
- C5 = np.matrix([[1,1,1], [1,1,1], [1,1,1]])
- C6 = np.matrix([[1, 6, 4], [1/6, 1, 1/3], [1/4, 3, 1]])
- C7 = np.matrix([[1, 9, 6], [1/9, 1, 1/4], [1/6, 3, 1]])
- C8 = np.matrix([[1, 1/2, 1/2], [2, 1, 1], [2, 1, 1]])
- Cparam = np.matrix([[1, 4, 7, 5, 8, 6, 6, 2],
- [1/4, 1, 5, 3, 7, 6, 6, 1/3],
- [1/7, 1/5, 1, 1/3, 5, 3, 1/5],
- [1/5, 1/3, 3, 1, 6, 3, 4, 1/2],
- [1/8, 1/7, 1/5, 1/6, 1, 1/3, 1/4, 1/7],
- [1/6, 1/6, 1/3, 1/3, 3, 1, 1/2, 1/5],
- [1/6, 1/6, 1/3, 1/4, 4, 2, 1, 1/5],
- [1/2, 3, 5, 2, 7, 5, 5, 1]])
- wC1, wektorC1 = npl.eig(C1)
- wC2, wektorC2 = npl.eig(C2)
- wC3, wektorC3 = npl.eig(C3)
- wC4, wektorC4 = npl.eig(C4)
- wC5, wektorC5 = npl.eig(C5)
- wC6, wektorC6 = npl.eig(C6)
- wC7, wektorC7 = npl.eig(C7)
- wC8, wektorC8 = npl.eig(C8)
- print(wC1)
- print()
- print(wektorC1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement