Skip to content
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

gammasimp can be improved for integer variables #19752

Open
sachin-4099 opened this issue Jul 12, 2020 · 0 comments
Open

gammasimp can be improved for integer variables #19752

sachin-4099 opened this issue Jul 12, 2020 · 0 comments
Labels

Comments

@sachin-4099
Copy link
Contributor

For a1, b1 being integers:

In [113]: y1
Out[113]:
Gamma(a1)*Gamma(1 - a1)
-----------------------
Gamma(b1)*Gamma(1 - b1)

In [114]: y1.gammasimp()
Out[114]:
Gamma(a1)*Gamma(1 - a1)
-----------------------
Gamma(b1)*Gamma(1 - b1)

Ideally, this should be (-1)**(a1 - b1) rather being unevaluated.

So, I think gammasimp can be improved for such cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant