4 ms·
I would be surprised if there is not some kind of loop in the code that is used to evaluate the gamma function. You can also define factorial like for example t
by adalacelove 4y ago
I would be surprised if there is not some kind of loop in the code that is used to evaluate the gamma function. You can also define factorial like for example the number of different permutations of any set of a given size.
- texaslonghorn5 4y agooutside of edge cases, c++ lgamma (log of gamma) uses Lanczos iteration with 8 iterations and gamma is just exp(lgamma)