python+numpy: why does numpy.log throw an attribute error if its operand is too big?

后端 未结 2 1168
失恋的感觉
失恋的感觉 2020-12-03 17:08

Running

np.log(math.factorial(21))

throws an AttributeError: log. Why is that? I could imagine a ValueError, or

2条回答
提交回复
热议问题