Re: Determinant of Large Matrix

2007-06-08 Thread Hendrik van Rooyen
"James Stroud" wrote: > James Stroud wrote: > [pointless stuff] > > OK. Nevermind. I'm rebinding encodings and so taking a sample from the > sample and thus getting the sample back. Terribly sorry. There is truly nothing to be sorry about. It takes guts to come right out and say that you made

Re: Determinant of Large Matrix

2007-06-07 Thread Mark Westwood
Hi James Mathematica says that the determinant of the integer version of this matrix is 2774532096, which is another vote for the answer you have. Mathematica says that the determinant of the 24-digit real version of your matrix is 2.774532096*10^9, which looks very similar to me. I'd go

Re: Determinant of Large Matrix

2007-06-07 Thread Bjoern Schliessmann
James Stroud wrote: > If I run it again on 10 (or 1000) the set is basically homogenous > but now of different values (terribly confusing): > > set([12048175104.1, 12048175104.15, 12048175104.46, > 12048175103.94, 12048175104.23, 12048175103.81, > 12048175103.98, 12048

Re: Determinant of Large Matrix

2007-06-06 Thread James Stroud
James Stroud wrote: [pointless stuff] OK. Nevermind. I'm rebinding encodings and so taking a sample from the sample and thus getting the sample back. Terribly sorry. James -- http://mail.python.org/mailman/listinfo/python-list

Re: Determinant of Large Matrix

2007-06-06 Thread James Stroud
Steven D'Aprano wrote: [Valuable Response] Thank you Steven for your helpful comments. Please see my reply to Bjoern Schliessmann where I have restated my problem. James -- http://mail.python.org/mailman/listinfo/python-list

Re: Determinant of Large Matrix

2007-06-06 Thread James Stroud
for a lot of trials. 2. encodings is a complete list equivalent encodings of word. 3. distmat is a representation of the distances between the sample as integers for purposes of calculating the "content" of the hyperspace defined by this pairwise distance matrix (Cayley-Menger det

Re: Determinant of Large Matrix

2007-06-06 Thread Steven D'Aprano
ut I have a feeling I'm exceeding the capacity of floats here. Does > anyone have an idea for how to treat this? Is it absurd to think I could > get a determinant of this matrix? Is there a python package that could > help me? Is there a particular reason you think there is a pr

Re: Determinant of Large Matrix

2007-06-06 Thread Bjoern Schliessmann
sely. E. g. what precision do you need? > Is it absurd to think I could get a determinant of this matrix? Absolutely not. > Is there a python package that could help me? Help doing what? BTW, scilab says this: -->det(A) ans = 2.774532096E+09 -->ans-2774532

Re: Determinant of Large Matrix

2007-06-06 Thread Peter Otten
oats here. Does > anyone have an idea for how to treat this? Is it absurd to think I could > get a determinant of this matrix? Is there a python package that could > help me? Here's some anecdotal evidence that your result may be correct: import operator m = eval("""

Re: Determinant of Large Matrix

2007-06-06 Thread Robert Kern
eding the capacity of floats here. It's not that you're exceeding the capacity of float64 numbers, it's just that there are floating point calculations taking place. The way the determinant is calculated is by doing an LU decomposition and then multiplying down the diagonal. Although

Re: Determinant of Large Matrix

2007-06-06 Thread J. Robertson
> anyone have an idea for how to treat this? Is it absurd to think I could > get a determinant of this matrix? Is there a python package that could > help me? > > Many thanks for any answers. > > James in order to verify that this result is correct, you could get the eig

Re: Determinant of Large Matrix

2007-06-06 Thread Dustan
9. 4. 1. 9. 1. 4. 1. 9. 4. 4. 1. 1. 0.]] > > > For this matrix, I'm getting this with numpy: > > > 2774532095.971 > > > But I have a feeling I'm exceeding the capacity of floats here. Does > > anyone have an idea for how to treat

Re: Determinant of Large Matrix

2007-06-06 Thread montyphyton
xceeding the capacity of floats here. Does > anyone have an idea for how to treat this? Is it absurd to think I could > get a determinant of this matrix? Is there a python package that could > help me? > > Many thanks for any answers. > > James have you tried using matlab

Re: Determinant of Large Matrix

2007-06-06 Thread Tommy Nordgren
feeling I'm exceeding the capacity of floats here. Does > anyone have an idea for how to treat this? Is it absurd to think I > could > get a determinant of this matrix? Is there a python package that could > help me? > > Many thanks for any answers. > > James > -- &g

Determinant of Large Matrix

2007-06-06 Thread James Stroud
1. 9. 1. 4. 1. 9. 4. 4. 1. 1. 0.]] For this matrix, I'm getting this with numpy: 2774532095.971 But I have a feeling I'm exceeding the capacity of floats here. Does anyone have an idea for how to treat this? Is it absurd to think I could get a determinant of this mat

Re: determinant

2006-01-31 Thread Raymond Hettinger
[Tuvas] > I am trying to find a nice function that quickly determines the > determanant in python. Anyone have any recommendations? I've heard > about numpy, but I can't get it to work (It doesn't seem to like the > import Matrix statement...). Thanks! http://aspn.activestate.com/ASPN/Cookbook/Pyt

Re: determinant

2006-01-31 Thread Tuvas
Never mind, I realized I was using a bit of code way too old. I just needed to change the import statements to: import numpy.matrix import numpy.linalg Thanks for the help! -- http://mail.python.org/mailman/listinfo/python-list

Re: determinant

2006-01-31 Thread Tuvas
I am using Windows, using Python 2.4. Perhaps I just did the import statement wrong? I've never installed a library in Windows before, perhaps I did something wrong there too.. But anyways, it just doesn't seem to work. The import statements were: import Matrix, LinearAlgebra Neither seem to work

Re: determinant

2006-01-30 Thread Robert Kern
Tuvas wrote: > I am trying to find a nice function that quickly determines the > determanant in python. Anyone have any recommendations? I've heard > about numpy, but I can't get it to work (It doesn't seem to like the > import Matrix statement...). Thanks! That's a new one on me. Have you tried t

determinant

2006-01-30 Thread Tuvas
I am trying to find a nice function that quickly determines the determanant in python. Anyone have any recommendations? I've heard about numpy, but I can't get it to work (It doesn't seem to like the import Matrix statement...). Thanks! -- http://mail.python.org/mailman/listinfo/python-list