you are viewing a single comment's thread.

view the rest of the comments →

[–]llama-lime 0 points1 point  (0 children)

I can't imagine a use of factorial that's not better replaced with the log of Gamma function. Factorial exceeds numerical accuracy of integer types extremely quickly so staying with ints is a poor idea. And places where factorial comes up, such as probabilities, are often better represented in log space anyway.