File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ function _logabsgamma(x::Float64)
108
108
# ix ≥ 0x43300000 && return Inf, signgam #= |x|>=2**52, must be -integer =#
109
109
t = sinpi (x)
110
110
iszero (t) && return Inf , signgam #= -integer =#
111
- nadj = log (π / abs (t * x))
111
+ nadj = logπ - log ( abs (t * x))
112
112
if t < 0.0 ; signgam = - 1 ; end
113
113
x = - x
114
114
end
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ function _logabsgamma(x::Float32)
36
36
# ix ≥ 0x4b000000 && return Inf32, signgam #= |x|>=2**23, must be -integer =#
37
37
t = sinpi (x)
38
38
t == 0.0f0 && return Inf32 , signgam #= -integer =#
39
- nadj = log (π / abs (t * x))
39
+ nadj = logπ - log ( abs (t * x))
40
40
if t < 0.0f0 ; signgam = - 1 ; end
41
41
x = - x
42
42
end
You can’t perform that action at this time.
0 commit comments