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