I tried to calculate determinants of matrices in Spyder IDE, but the results made me suspicious about "scipy" for further study.
Here is the code I used:
import numpy as np
from scipy import linalg
matrix = np.array([[5.0, 9.0],[3.0, 5.0]], dtype=float)
det = linalg.det(matrix)
print(det)
and here is the output:
-1.999999999999999
Another matrix and its determinant:
import numpy as np
from scipy import linalg
matrix = np.array([[5.0, 12.0],[2.0, 5.0]], dtype=float)
det = linalg.det(matrix)
print(det)
Output:
1.000000000000001