0
I created two arrays as follows
array1=np.arange(1000000)
array2= np.arange(1000000)
and when I did the following operation:
array1*array2
I got that answer:
array([ 0, 1, 4, ..., -731379964, -729379967,
-727379968])
And when I used the np.Multiply() function I got the same answer:
np.multiply(array1,array2)
I’m using the jupyter notebook, I don’t know if it interferes.
I settled the question thank you for warning me.
– Thiago Benevides
Here (https://repl.it/@acwoss/sopt-Question-387036) did not give this problem. That’s all the same code?
– Woss
Dear Thiago, this is probably because your Python is 32bit, so the architecture does not support large numbers, in the example of @Andersoncarloswoss works because Repl.it probably runs version 64bit.... Here use 32bit, see the result, is the same as Thiago: https://i.stack.Imgur.com/Tkori.png
– Guilherme Nascimento
Thank you for the reply.
– Thiago Benevides