Linear Algebra

  • + 0 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))