我正在尝试查找表达式的确切数字。我找不到它。以下是我尝试过的代码段。
>>> math.pow(400.0,math.pow(400.0,400.0))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: math range error
当我尝试使用numpy时,我变得像:
>>> np.power(400.0,np.power(400.0,400.0))
>>> inf
但是我无法获得确切的数字。谁能帮我这个忙。这将对我有很大的帮助。
提前致谢。
您尝试计算的1.735057357739408×10^1041
数字具有十进制数字(来自wolframalpha)。您最肯定无法获得确切的表示。inf
距离您将近。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句