Hi, I expect `reciprocal(x)` to calculate 1/x, and for input 0 to either follow the python rules or give the np.divide(1, 0) result. However the result returned (with numpy trunk) is:
>>> np.reciprocal(0) -2147483648 >>> np.divide(1, 0) 0 >>> 1/0 Traceback (most recent call last): File "<stdin>", line 1, in <module> ZeroDivisionError: integer division or modulo by zero The result for a zero float argument is inf as expected. I want to document the correct behavior for integers, what should it be? Cheers, Ralf
_______________________________________________ Numpy-discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
