[Numpy-discussion] ufunc oddities

Charles R Harris charlesr.harris@gmail....
Sat May 24 20:31:19 CDT 2008

Hi All,

I'm writing tests for ufuncs and turned up some oddities:

In [4]: degrees(True)
Out[4]: 57.29578

In [5]: radians(True)
Out[5]: 0.017453292

In [6]: sin(True)
Out[6]: 0.84147096

Do we want numeric functions to apply to booleans?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080524/d6bbfccb/attachment.html 

More information about the Numpy-discussion mailing list