python,function,matrix,determinants,non-type

Your problem is that det only returns something in the else part of the if.. else If len(matrix)==1, nothing happens (or at least nothing is returned). So when n=2 it tries to use cofactor which should be the result from an n=1 calculation, the value of cofactor is None. so...

python,numpy,matrix,matrix-inverse,determinants

The numerical inversion of matrices does not involve computing the determinant. (Cramer's formula for the inverse is not practical for large matrices.) So, the fact that determinant evaluates to 0 (due to insufficient precision of floats) is not an obstacle for the matrix inversion routine. Following up on the comments...

matlab,correlation,matrix-inverse,determinants,fminsearch

How about sqrt(det(Gamma)) for the sqrt-determinant and inv(Gamma) for inverse? But if you do not want to implement it yourself you can look at yulewalkerarestimator UPD: For estimation of autocovariance matrix use xcov also, this topic is a bit more explained here...

This is called symbolic math and is in the wheelhouse of tools like Mathematica. For Perl, there are packages like Math::Synbolic but I couldn't tell you how easy they are to use. On the other hand, if you are just interested in what values of R have a determinant of...

You just need to remove the first (zeroth) row and the column which you don't want. The following may be of use to you: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { /// <summary> /// Helper to show array. /// </summary> ///...