>>> np.__version__
'1.7.0'
>>> np.sqrt(10000000000000000000)
3162277660.1683793
>>> np.sqrt(100000000000000000000.)
10000000000.0
>>> np.sqrt(100000000000000000000)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: sqrt
hh ... AttributeError: sqrt
何が起こっているのですか? math.sqrt
に同じ問題はないようです。大きな整数のためのnp.sqrtの奇妙な振る舞い
ここで新しいことを学びました。投稿ありがとう! – mgilson