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 function for complex arguments #14221

Closed
stevengj opened this issue Dec 1, 2015 · 0 comments
Closed

beta function for complex arguments #14221

stevengj opened this issue Dec 1, 2015 · 0 comments
Labels
maths Mathematical functions

Comments

@stevengj
Copy link
Member

stevengj commented Dec 1, 2015

beta(x,y) does not currently support complex arguments, because it calls the Base.Math.lgamma_r function, which only supports real arguments, rather than lgamma, which takes complex arguments.

Seems like an easy fix to extend lgamma_r to complex arguments. Since lgamma for complex arguments does not take an absolute value, it seems like we could just define a fallback lgamma_r(z::Number) = lgamma(z), 1

This also relevant to #14165.

@stevengj stevengj added the maths Mathematical functions label Dec 1, 2015
stevengj added a commit to stevengj/julia that referenced this issue Dec 2, 2015
stevengj added a commit to stevengj/julia that referenced this issue Dec 2, 2015
stevengj added a commit to stevengj/julia that referenced this issue Dec 2, 2015
stevengj added a commit to stevengj/julia that referenced this issue Dec 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maths Mathematical functions
Projects
None yet
Development

No branches or pull requests

1 participant