Skip to content

Commit 6d36aa1

Browse files
Update src/gamma.jl
Co-authored-by: Michael Helton <[email protected]>
1 parent 4dbefe0 commit 6d36aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gamma.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
function gamma(x::Float64)
33
T = Float64
44
if x < 0
5-
(isinteger(x) || x==-Inf) && throw(DomainError(x, "NaN result for non-NaN input."))
5+
(isinteger(x) || x == -Inf) && throw(DomainError(x, "NaN result for non-NaN input."))
66
xp1 = abs(x) + 1.0
77
return π / (sinpi(xp1) * _gamma(xp1))
88
end

0 commit comments

Comments
 (0)