You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I call gamma(Float128(a),x) for x >= 3 I get an error, because gamma goes to a branch where it uses the function logabsgamma, which is not defined for Float128. This comes from the deprecation of lgamma and its replacement with loggamma and logabsgamma.
In DoubleFloats I fixed this by defining the function in terms of its BigFloat version. I could do the same here or, if you prefer, define it in terms of the Float128 version of lgamma with something like
functionlogabsgamma(x::Float128)
sign = x >=0?1:2*mod(ceil(Int64,x),2)-1returnlgamma(x), sign
end
It would also be nice to define a loggamma function with the same behaviour of the SpecialFunctions one for consistency.
The text was updated successfully, but these errors were encountered:
Essentially the same issue as JuliaMath/DoubleFloats.jl#183
If I call
gamma(Float128(a),x)
forx >= 3
I get an error, becausegamma
goes to a branch where it uses the functionlogabsgamma
, which is not defined forFloat128
. This comes from the deprecation oflgamma
and its replacement withloggamma
andlogabsgamma
.In
DoubleFloats
I fixed this by defining the function in terms of itsBigFloat
version. I could do the same here or, if you prefer, define it in terms of theFloat128
version oflgamma
with something likeIt would also be nice to define a
loggamma
function with the same behaviour of theSpecialFunctions
one for consistency.The text was updated successfully, but these errors were encountered: