Re: [Numpy-discussion] Strange behavior of np.sinc

2010-06-27 Thread David Goldsmith
On Sat, Jun 26, 2010 at 10:00 PM, David Goldsmith wrote: > On Sat, Jun 26, 2010 at 9:39 PM, Robert Kern wrote: > >> On Sat, Jun 26, 2010 at 23:33, David Goldsmith >> wrote: >> > Hi! The docstring for numpy.lib.function_base.sinc indicates that the >> > parameter has to be an ndarray, and that it

Re: [Numpy-discussion] Strange behavior of np.sinc

2010-06-26 Thread David Goldsmith
On Sat, Jun 26, 2010 at 9:39 PM, Robert Kern wrote: > On Sat, Jun 26, 2010 at 23:33, David Goldsmith > wrote: > > Hi! The docstring for numpy.lib.function_base.sinc indicates that the > > parameter has to be an ndarray, and that it will return the limiting > value 1 > > for sinc(0). Checking t

Re: [Numpy-discussion] Strange behavior of np.sinc

2010-06-26 Thread Robert Kern
On Sat, Jun 26, 2010 at 23:33, David Goldsmith wrote: > Hi!  The docstring for numpy.lib.function_base.sinc indicates that the > parameter has to be an ndarray, and that it will return the limiting value 1 > for sinc(0).  Checking to see if it should actually say array_like, I found > the followin

[Numpy-discussion] Strange behavior of np.sinc

2010-06-26 Thread David Goldsmith
Hi! The docstring for numpy.lib.function_base.sinc indicates that the parameter has to be an ndarray, and that it will return the limiting value 1 for sinc(0). Checking to see if it should actually say array_like, I found the following (Python 2.6): >>> np.sinc(np.array((0,0.5))) array([ 1.