JuliaMath / SpecialFunctions.jl

Special mathematical functions in Julia

Home Page:https://specialfunctions.juliamath.org/stable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

benninkrs opened this issue · 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))