from numpy import *
m = matrix ('1 2 3;4 5 6;7 8 9')
n = matrix ('3 4 5;5 6 9;8 5 4')
print("The basic matrix m is ")
print(m)
print("The diagonal of the matrix is ")
print(diagonal(m))
print("The minimum value in the matrix is ")
print(m.min())
print("The maximum value in the matrix is ")
print(m.max())
print("The addition of the ,atrix is ")
k=m+n
print(k)
print("The multiplication of matrix is ")
j=m*n
print(j)
m = matrix ('1 2 3;4 5 6;7 8 9')
n = matrix ('3 4 5;5 6 9;8 5 4')
print("The basic matrix m is ")
print(m)
print("The diagonal of the matrix is ")
print(diagonal(m))
print("The minimum value in the matrix is ")
print(m.min())
print("The maximum value in the matrix is ")
print(m.max())
print("The addition of the ,atrix is ")
k=m+n
print(k)
print("The multiplication of matrix is ")
j=m*n
print(j)