MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Mathematica v5 versus v6

  • To: mathgroup at
  • Subject: [mg80075] Re: Mathematica v5 versus v6
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at>
  • Date: Sun, 12 Aug 2007 07:10:47 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <f9jjnc$2i8$>

Jon wrote:
> Hi
> I have found that there are some simple problems which can be done quickly in v5 but the new v6 seemingly cannot.
> For example I am presently doing some work which requires the calculation of the Rank of an 8 by 8 matrix. Using my notebook, 1Gb RAM and 1.73GHz with v5.1, I get the answer in a few seconds. When I installed v6 and ran the same nb file I never got an answer even after running for 1 hour.
> Is there a bug in v6?
> If others are also running v6 I would be interested in getting in touch to see if other users have the same experience. If you are running on a 64 bit machine I would really like to see if that solves the problem and can give  an answer with v6.
> Any comments are very welcome!

More input is needed. We can assume that you are using dense matrices, 
but what about the precision of their entries? Do you use exact 
arithmetic, arbitrary precision, or machine precision? Do you use 
built-in function or some code of your own? Can you provide an example?

On my Wintel system (Pentium 4HT 2.6 MHz, 1 Go physical RAM), the 
built-in function *MatrixRank* is fast enough to compute the rank of a 
random 100 by 100 matrix in a second or so for machine-precision entries 
on both versions. For matrices with infinite-precision entries, 
Mathematica 6 improves the performances by a factor of two or so.

$HistoryLength = 0;

5.2 for Microsoft Windows (June 20, 2005)

m = Table[Random[Real, {$MinMachineNumber, $MaxMachineNumber}], {100},

{0.907 Second,100}

m = Table[Random[Integer, {-10000, 10000}], {100}, {100}];

{2.047 Second,100}

In[7]:= $HistoryLength = 0;

Out[8]= "6.0 for Microsoft Windows (32-bit) (June 19, 2007)"

In[9]:= m =
   RandomReal[{$MinMachineNumber, $MaxMachineNumber}, {100, 100}];

Out[10]= {1.094, 100}

In[11]:= m = RandomInteger[{-10000, 10000}, {100, 100}];

Out[12]= {1.187, 100}


  • Prev by Date: Re: Sign Declaration
  • Next by Date: Re: Mathematica v5 versus v6
  • Previous by thread: Re: Mathematica v5 versus v6
  • Next by thread: Re: Re: Mathematica v5 versus v6