Re: [Numpy-discussion] Regression in choose()

2011-07-27 Thread Ed Schofield
s > needed dynamically. > > This would be a nice project for someone wanting to learn the NumPy code > base. > > -Travis > > > > > > On Jun 16, 2011, at 1:56 AM, Ed Schofield wrote: > > Hi all, > > I have been investigation the limitation of the cho

[Numpy-discussion] Regression in choose()

2011-06-15 Thread Ed Schofield
Hi all, I have been investigation the limitation of the choose() method (and function) to 32 elements. This is a regression in recent versions of NumPy. I have tested choose() in the following NumPy versions: 1.0.4: fine 1.1.1: bug 1.2.1: fine 1.3.0: bug 1.4.x: bug 1.5.x: bug 1.6.x: bug Numeric 2

[Numpy-discussion] arange and floating point arguments

2007-09-14 Thread Ed Schofield
Hi everyone, This was reported yesterday as a bug in Debian's numpy package: >>> len(numpy.arange(0, 0.6, 0.1)) == len(numpy.arange(0, 0.4+0.2, 0.1)) False The cause is this: >>> ceil((0.4+0.2)/0.1) 7.0 >>> ceil(0.6/0.1) 6.0 which holds for both numpy's and the standard library's ceil(). Usi