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

extend binomial to real and complex numbers

Open musm opened this issue 5 years ago • 3 comments

Originally from: https://github.com/JuliaLang/julia/pull/14165

musm avatar Dec 11 '20 19:12 musm

Having a binomial(x,y) = inv((x+1)*beta(x - y + 1, y + 1)) method or similar seems reasonable.

stevengj avatar Dec 17 '20 03:12 stevengj

I'd like to work on this. I have the following things in mind

  • implement the function
    • exactly the one-liner that @stevengj wrote before
  • write documentation (link to dlmf, wikipedia)
  • write tests
    • compare to integer inputs
    • compare some random arguments
    • compare complex arguments
    • compare mixed (real, complex) arguments
    • checking BigFloat implementation?

Anything else to keep in mind?

PaulXiCao avatar Jan 10 '21 21:01 PaulXiCao

That seems like it.

stevengj avatar Jan 11 '21 02:01 stevengj