To calculate the determinant of a matrix, perform the following steps:
A = np.mat("3 4;5 6") print "A ", A
The matrix we created is shown as follows:
A [[ 3. 4.] [ 5. 6.]]
det
function.print "Determinant", np.linalg.det(A)
The determinant is shown as follows:
Determinant -2.0