SpecialFunctions.jl
SpecialFunctions.jl copied to clipboard
Generalize beta, logbeta, etc. to any number of arguments
Is there interest in generalizing the beta function to any number of arguments? A basic implementation of logbeta would be
logbeta() = -Inf
logbeta(args...) = sum(loggamma.(args)) - loggamma(sum(args))