-
-
Notifications
You must be signed in to change notification settings - Fork 45.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consolidate gamma #9769
Consolidate gamma #9769
Conversation
maths/gamma.py
Outdated
def test_gamma_recursive() -> None: | ||
""" | ||
>>> test_gamma_recursive() | ||
""" | ||
assert gamma_recursive(0.5) == math.sqrt(math.pi) | ||
assert gamma_recursive(1) == 1.0 | ||
assert gamma_recursive(2) == 1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we get rid of this function by adding its tests to the gamma_recursive
doctests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I just realized that 108 and 110 are already tested in the doctests
* refactor(gamma): Append _iterative to func name * refactor(gamma): Consolidate implementations * refactor(gamma): Redundant test function removal * Update maths/gamma.py --------- Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
Describe your change:
Consolidation of gamma and gamma_recursive into one file
Fixes #8098
Checklist: