for what is the determinant of a matrix used for code example Example: matrix determinant for 2x2: a b c d ad - bc