<分区>
我正在尝试找到表达式的确切数字。我找不到它。下面是我试过的代码片段。
>>> 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
但我无法得到确切的数字。谁能帮我解决这个问题。这对我有很大的帮助。
提前致谢。