import numpy as np
m = np.arange(6).reshape(2,3)
print("Original matrix:")
print(m)
result = np.trace(m)
print("Condition number of the said matrix:")
print(result)
Sample Output:
Original matrix:
[[0 1 2]
[3 4 5]]
Condition number of the said matrix:
4
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer