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

beta(-n,n) gives NaN, when n is an integer #149

Closed
QMrpy opened this issue Mar 17, 2019 · 2 comments · Fixed by #169
Closed

beta(-n,n) gives NaN, when n is an integer #149

QMrpy opened this issue Mar 17, 2019 · 2 comments · Fixed by #169

Comments

@QMrpy
Copy link

QMrpy commented Mar 17, 2019

Beta function at negative integer argument x=n should give ((-1)^n)/n, but instead it gives NaN.The evaluation at negative integers must be done by taking limits close to -n, where the pole at negative integers cancels out

@Peiffap
Copy link

Peiffap commented May 6, 2019

Some work on this was done in JuliaLang/julia#14349.

@simonbyrne
Copy link
Member

See also discussion in JuliaLang/julia#14256. Would be also good to address cancellation issues when arguments have large difference in magnitudes (see JuliaLang/julia#4301 (comment)).

Several utility functions were added in #165 which might be reused for this.

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 a pull request may close this issue.

3 participants