You are viewing a single comment's thread. Return to all comments →
import numpy as np
n = int(input())
arr = []
for _ in range(n): a = [list(map(float, input().split()))] arr.extend(a)
print(round(np.linalg.det(np.array(arr)), 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
n = int(input())
arr = []
for _ in range(n): a = [list(map(float, input().split()))] arr.extend(a)
print(round(np.linalg.det(np.array(arr)), 2))