From bug-octave-request at bevo dot che dot wisc dot edu Fri Oct 10 11:36:23 1997 Subject: permutations incorrect From: "John W. Eaton" To: "Dr. G. Buerger" cc: bug-octave at bevo dot che dot wisc dot edu Date: Fri, 10 Oct 1997 11:34:09 -0500 On 10-Oct-1997, Dr. G. Buerger wrote: | Bug report for Octave 2.0.5 configured for rs6000-ibm-aix3.2.5 | | Description: | ----------- | | octave> a=[1,2,3,4,5] | 1 2 3 4 5 | octave> a([1,3,2,4,5]) | 1 2 3 4 5 | octave> a([2,1,3,4,5]) | 2 1 3 4 5 | octave> a([1,4,3,2,5]) | 1 2 3 4 5 | | The 2nd and 4th permutations are incorrect. I have not checked for any | systematic errors. | | The error also occurs on my linux machine at home. This problem was fixed somewhere along the way: Octave, version 2.0.9 (i686-pc-linux-gnu). Copyright (C) 1996, 1997 John W. Eaton. This is free software with ABSOLUTELY NO WARRANTY. For details, type `warranty'. octave:1> a = [1,2,3,4,5] a = 1 2 3 4 5 octave:2> a([1,4,3,2,5]) ans = 1 4 3 2 5 octave:3> a([2,1,3,4,5]) ans = 2 1 3 4 5 octave:4> a([1,2,3,4,5]) ans = 1 2 3 4 5 Thanks, jwe