SpecialFunctions.jl icon indicating copy to clipboard operation
SpecialFunctions.jl copied to clipboard

Generalize beta, logbeta, etc. to any number of arguments

Open benninkrs opened this issue 2 years ago • 0 comments

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))

benninkrs avatar Oct 12 '23 14:10 benninkrs