Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site epsilon.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!egs From: egs@epsilon.UUCP (Ed Sheppard) Newsgroups: net.math Subject: Recursive Determinant Evaluation Message-ID: <37@epsilon.UUCP> Date: Mon, 25-Feb-85 04:07:11 EST Article-I.D.: epsilon.37 Posted: Mon Feb 25 04:07:11 1985 Date-Received: Wed, 27-Feb-85 07:07:46 EST Organization: BELLCORE, Livingston, NJ Lines: 50 As Greg Kuperberg has pointed out in private mail (thanks Greg), my determinant evaluator was wrong. In particular, the matrix [ 0 1 ] [ 1 0 ] has a det of -1, not zero as my function would have reported. Well, that's strike one. Let me try again with the following: float determ(n,a) int n; float a[n][n]; /* ugh! */ { int i, j; float t; if(n==1) return(a[0][0]); for(i=0; i=n) return(0); /* zero column -> zero det */ /* make a[0] = a[0]+a[i], a[i] = -a[0] */ a[0][0] = a[i][0]; for(j=1; j