We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dbefe0 commit 6d36aa1Copy full SHA for 6d36aa1
src/gamma.jl
@@ -2,7 +2,7 @@
2
function gamma(x::Float64)
3
T = Float64
4
if x < 0
5
- (isinteger(x) || x==-Inf) && throw(DomainError(x, "NaN result for non-NaN input."))
+ (isinteger(x) || x == -Inf) && throw(DomainError(x, "NaN result for non-NaN input."))
6
xp1 = abs(x) + 1.0
7
return π / (sinpi(xp1) * _gamma(xp1))
8
end
0 commit comments