Skip to content

Conversation

@tompng
Copy link
Member

@tompng tompng commented Oct 29, 2025

Implement gamma and lgamma with Spouge's approximation
https://en.wikipedia.org/wiki/Spouge%27s_approximation

It's relatively simple compared to other algorithm.
It's designed to converges in wide range of x without special care. This characteristic is important to calculate gamma for huge number: BigMath.gamma(BigDecimal(10000000), 100)

Implement gamma and lgamma with Spouge's approximation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant