I am trying to find the determinant of an nxn matrix A by using the determinants of the QR decomposition to calculate det(A), as well as find the solution to Ax = b. However