Write a NumPy program to compute the condition number of a given matrix
- برمجة بايثون
- 2021-09-13
- mhanasmh00489829403
الأجوبة
import numpy as np
m = np.array([[1,2],[3,4]])
print("Original matrix:")
print(m)
result = np.linalg.cond(m)
print("Condition number of the said matrix:")
print(result)
Sample Output:
Original matrix: [[1 2] [3 4]] Condition number of the said matrix: 14.9330343737
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال