From bug-octave-request at che dot utexas dot edu Fri Nov 18 05:27:24 1994 Subject: Bug in "Range" From: el at dynamica dot no (Erling Lunde) To: bug-octave at che dot utexas dot edu Date: Fri, 18 Nov 94 12:03:42 NST I got a wrong result when trying to produce a vector with the range expression. The problem occurs when using a negative increment: octave:9> k = 0.9:-0.3:0.0 k = 0.90000 0.60000 0.30000 0.00000 octave:10> k = 0.9:-0.3:0.1 k = 0.90000 0.60000 The latter result should obviously include a 0.30 as well. The error cannot be due to floating point roundoff.(?) Sincerely, Erling Lunde ------------------------------------------------------- Erling Lunde, Dr.ing. Dynamica AS Pirsenteret 7005 Trondheim, Norway Tel: +47 73 92 91 60 Fax: +47 73 92 91 65 Email: el at dynamica dot no -------------------------------------------------------