Calculating log(1000!)

The previous post pointed out that the following code such as the following unexpectedly works. from math import log, factorial log(factorial(1000)) 5912.128178488163 If you don t find this unexpected, note that if you replace math.log with numpy.log the code will fail [1]. Functions like natural logarithm operate on real numbers. Real numbers are represented [ ] The post Calculating log(1000!)…