Calculation of trigamma and polygamma functions for complex inputs#123
Calculation of trigamma and polygamma functions for complex inputs#123LorenzoPeri17 wants to merge 7 commits intoscipy:mainfrom
trigamma and polygamma functions for complex inputs#123Conversation
…sts are passing to a decent level of accuracy
|
Thanks @LorenzoPeri17! Don't worry about |
|
Thanks @LorenzoPeri17 CI is complaining because your code is not formatted. You can run |
|
Thanks for the comments! I just realized that I ran And thanks for the clarification @steppi about |
Closes issue #120 and #7410 in scipy.
I have started a PR to get the ball rolling. I have implemented the tests myself calculating raw input-output pairs via mpmath because I could not quite wrap my head the table generation system of
xsref. Happy to help in this effort with some guidance :)I would also be happy to help with the plumbing to get
trigammaandpoligammaplumbed intoscipy.specialif there is a need!I have taken the liberty of making a bespoke
trigammafunction because it is the one that comes up regularly in my work (and it's the original reason why I went down the polygamma rabbit hole), so I could use the special handling of the roots ;)