jl> p = big(3.6e13)
3.6e+13
jl> q = 1/big(0.563483398)+1
2.774675178628776489804929213602311938188089959295862682297487944939957397047059
jl> beta(p, q)
NaN
??
jl> p = big(3.6e13)
3.6e+13
jl> q = 1/big(0.563483398)+1
2.774675178628776489804929213602311938188089959295862682297487944939957397047059
jl> beta(p, q)
NaN
??
On my computer:
jl> gamma(big(3.6e13))
Inf
jl> @which gamma(big(3.6e13))
gamma(x::BigFloat) in SpecialFunctions at C:\Users\dnf\.julia\packages\SpecialFunctions\mFAQ4\src\gamma.jl:578
Hunh. I’m also Julia 1.6, SpecialFunctions 1.3.0. How did you install Julia? On what platform?
I have two different installations: Julia 1.6.0 on Windows 10, and version 1.6.1 on WSL2 under Windows 10 (it’s on the same system).
The ordinary Windows installation:
jl> gamma(big(3.6e13))
Inf
while the one under WSL2:
jl> gamma(big(3.6e13))
7.882861104028365451673058070377064242970022825665897715265241972922672893761775e+472392288679098
I’ve split this out — would you be willing to file a bug report? You seem uniquely well placed to look at precisely the differences that are causing this.
Yes, I can do that later today.