gringotopies

Lab5Zad2

Dec 10th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. from scipy.linalg import hilbert
  2.  
  3.  
  4. hmatrix=hilbert(8)
  5. #1,2,-1
  6. wskkolumnowa=np.linalg.cond(hmatrix,1)
  7. wskspektralna=np.linalg.cond(hmatrix,2)
  8. wskwierszowa=np.linalg.cond(hmatrix,-1)
  9. print("Współczynniki")
  10. print("Norma kolumnowa: " ,wskkolumnowa)
  11. print("Norma wskspektralna)
  12. print(wskwierszowa)
Add Comment
Please, Sign In to add comment