I\'m trying to use numpy to element-wise square an array. I\'ve noticed that some of the values appear as negative numbers. The squared value isn\'t near the max int limit.
Actually, the result of your code is:
[1, 4, 2289813904]
But in case of squaring negative numbers you need to put the negative number in parenthesis:
>>> (-10) ** 2