help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MacOSX: test_system.m in test dir


From: Matthias Brennwald
Subject: Re: MacOSX: test_system.m in test dir
Date: Wed, 21 Feb 2007 08:42:17 +0100

Here's the results from my G4 (PowerBook), with a little glitch on Octave 2.1.71:

1. With Octave 2.1.71 (binary from Fink):

octave:1> rand('state',20)
error: rand: unrecognized string argument
octave:1> rand(6)
ans =

  0.9261073  0.3423863  0.4648016  0.1680272  0.8106666  0.8564630
  0.2881806  0.9226635  0.9825385  0.9743263  0.3272340  0.0746867
  0.0083739  0.8175322  0.8488583  0.5497813  0.0133858  0.7037124
  0.5471855  0.3612784  0.0172846  0.7101010  0.3795244  0.2248019
  0.1964660  0.2990955  0.5999616  0.4896129  0.5295270  0.8816100
  0.5717934  0.4467340  0.2386979  0.6548057  0.4250780  0.4956360

octave:2> randn(6)
ans =

   0.040917  -0.181711   0.092395   0.716760  -0.982365  -0.391728
  -0.297048  -1.523166  -0.580819   1.502624  -1.818331   0.476400
   0.676342  -0.763758   1.696409   1.133074  -0.394204   0.491547
  -1.285594   1.176541   1.153506  -0.494604   0.634340   1.140006
   0.743541  -0.889207  -0.992352  -0.711635  -0.937382  -0.715707
  -0.766342  -1.212314   1.162181   1.125339  -1.030321  -0.611046


2. Octave 2.9.9 (binary from HPC):

octave:1> rand('state',20)
octave:2> rand(6)
ans =

   0.905640   0.904946   0.103248   0.908636   0.081466   0.283472
   0.686254   0.872130   0.319139   0.335569   0.573210   0.690250
   0.766509   0.572941   0.950039   0.427372   0.035097   0.163349
   0.904616   0.169378   0.449401   0.627684   0.094525   0.117697
   0.259827   0.411523   0.208653   0.805585   0.190338   0.023345
   0.635726   0.993838   0.316904   0.492114   0.693438   0.705784

octave:3> randn(6)
ans =

   0.295234   0.324371  -1.658914  -0.406170  -0.994639   1.052243
  -1.409575  -1.747613   1.357417   0.458465  -0.860010   0.476066
  -0.449372   1.115571  -0.713059   0.935200   0.548169   1.787374
  -0.586654   0.227727  -0.567170  -1.048334   2.062881  -1.496403
   0.970717   0.830822   1.410721   0.066523  -1.174107  -1.970988
  -0.289271   0.822630  -0.594142  -0.050651  -0.748005  -1.572089


HTH,
Matthias



On 20.02.2007, at 21:43, Thomas Treichl wrote:

Hi Matthias and Joe,

can you do me the favor and test the following three lines of code in Octave and then send me (or directly post to the mailing list of Octave, thread "MacOSX: test_system.m in test dir") the results from the G4 and G5 hardware? It doesn't matter if you use the HMUG or DARWINPORTS or whatever version of Octave, you could help making Octave more suitable for Mac. I can only test on the Core Duo hardware.

This would really be great.
Thanks a lot,
Thomas

David Bateman schrieb:
octave:1> rand('state',20)
octave:2> rand(6)
octave:3> randn(6)
Ok, so is this an Intel or a PowerPC? It makes a difference to the way
the bits might be handled in the generators and if this is an intel,
then it means that we still need a result from a powerpc to be sure..
D.

PS. An example would might look like this...

octave:1> rand('state',20)
octave:2> rand(6)
ans =
     0.905640   0.904946   0.103248   0.908636   0.081466   0.283472
     0.686254   0.872130   0.319139   0.335569   0.573210   0.690250
     0.766509   0.572941   0.950039   0.427372   0.035097   0.163349
     0.904616   0.169378   0.449401   0.627684   0.094525   0.117697
     0.259827   0.411523   0.208653   0.805585   0.190338   0.023345
     0.635726   0.993838   0.316904   0.492114   0.693438   0.705784

octave:3> randn(6)
ans =

     0.295234   0.324371  -1.658914  -0.406170  -0.994639   1.052243
    -1.409575  -1.747613   1.357417   0.458465  -0.860010   0.476066
    -0.449372   1.115571  -0.713059   0.935200   0.548169   1.787374
    -0.586654   0.227727  -0.567170  -1.048334   2.062881  -1.496403
     0.970717   0.830822   1.410721   0.066523  -1.174107  -1.970988
    -0.289271   0.822630  -0.594142  -0.050651  -0.748005  -1.572089




-------
Matthias Brennwald
Lägernstrasse 6
CH 8037 Zürich
+41 (0)44 364 17 03
address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]