Notes: Matrix entries can be complex and rational numbers such as
1.2 - 1/3i. To compute the determinant of a square matrix apply row reduction. The determinant is the product of the pivots with the sign flipped if the number of row swaps is odd. If row reduction does not produce an identity matrix, then the matrix is singular with determinant 0.