Skip to content

Instantly share code, notes, and snippets.

@YHaruoka
Created June 23, 2022 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YHaruoka/cb4a57207094e5f03347d6c95d68ec6d to your computer and use it in GitHub Desktop.
Save YHaruoka/cb4a57207094e5f03347d6c95d68ec6d to your computer and use it in GitHub Desktop.
import numpy as np
matrix1 = np.array([[1, 2],
[3, 4]])
det1 = np.linalg.det(matrix1)
print(det1)
matrix2 = np.array([[1, 2, 3],
[4, 5, 6],
[7, 8, 9]])
det2 = np.linalg.det(matrix2)
print(det2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment