From owner-bug-octave at bevo dot che dot wisc dot edu Wed Dec 18 17:13:52 1996 Subject: octave-2.0 bug: (unary -) vector From: Joao Cardoso To: bug-octave at bevo dot che dot wisc dot edu Date: Wed, 18 Dec 96 23:10:17 GMT Hi, Perhaps the subject title is not well choosen, but the example is: Octave, version 2.0 (i486-pc-sco3.2v4.0). Copyright (C) 1996 John W. Eaton. This is free software with ABSOLUTELY NO WARRANTY. For details, type `warranty'. octave:1> x=-5:5 x = -5 -4 -3 -2 -1 0 1 2 3 4 5 octave:2> -x error: octave_base_value::uminus(): wrong type argument `string' error: evaluating unary operator `-' near line 2, column 1 error: evaluating assignment expression near line 2, column 1 octave:3> 0-x ans = 5 4 3 2 1 0 -1 -2 -3 -4 -5 octave:4> Octave, version 1.1.1. Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton. This is free software with ABSOLUTELY NO WARRANTY. For details, type `warranty'. octave:1> x=-5:5 x = -5 -4 -3 -2 -1 0 1 2 3 4 5 octave:2> -x ans = 5 4 3 2 1 0 -1 -2 -3 -4 -5 -- Joao Cardoso, INESC | e-mail: jcardoso at inescn dot pt R. Jose Falcao 110 | tel: + 351 2 2094345 4000 Porto, Portugal | fax: + 351 2 2008487