The last cell of the bellow array shows a wrong result:
Code:
import numpy
b=numpy.array ([[1,2,3,4],[5,6,8,16]])
b=b**b/b+1
b
result:
array([[2.000000e+00, 3.000000e+00, 1.000000e+01, 6.500000e+01],
[6.260000e+02, 7.777000e+03, 2.097153e+06, 1.000000e+00]])
All numbers are correct except for the last one.
Type is numpy.float64. The correct answer is 1.152921504606847e+18.
Any ideas?
Thanks