You are viewing a single comment's thread. Return to all comments →
import numpy as np
mtx_size = int(input()) mtx = []
for i in range (mtx_size): row = list(map(float,input().split())) mtx.append(row)
print(round(np.linalg.det(mtx),2))
Seems like cookies are disabled on this browser, please enable them to open this website
Linear Algebra
You are viewing a single comment's thread. Return to all comments →
import numpy as np
mtx_size = int(input()) mtx = []
for i in range (mtx_size): row = list(map(float,input().split())) mtx.append(row)
print(round(np.linalg.det(mtx),2))