Igor Schein on Mon, 30 Sep 2002 09:54:34 -0400 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: apparent sigma() problem |
On Mon, Sep 30, 2002 at 03:42:46PM +0200, Bill Allombert wrote: > On Sun, Sep 29, 2002 at 11:52:55PM -0400, Igor Schein wrote: > > Hi, > > > > ? sigma(2,-1) > > 6 > > > > doesn't make sense. There's nothing in the manual that prevents 2nd > > argument from being negative, so I'd expect the answer to be 3/2. > Both you and the manual are correct, only the code is at fault: > > ? sigma(2,-1) > %1 = 6 /*wrong*/ > ? sigma(2,-2) > %2 = 5/4 /*correct*/ What version are you running? I tried 2.1.4 and CVS, and in both sigma(-2,2) returns 5. Thanks Igor