|
From: Sasha <nd...@ma...> - 2006-01-16 05:39:52
|
It looks like NumPy and Numeric handle invalid integer operations different= ly: >>> from numpy import * >>> import Numeric as n >>> array(2)**40 2147483647 >>> array(2)/0 0 In numeric both fail: >>> n.array(2)**40 Traceback (most recent call last): File "<stdin>", line 1, in ? ArithmeticError: Integer overflow in power. >>> n.array(2)/0 Traceback (most recent call last): File "<stdin>", line 1, in ? ZeroDivisionError: divide by zero I don't know if the change was intentional, but if it was, I think it should be advertised. -- sasha |