Skip to content

Commit 5feb32f

Browse files
authored
Update gamma.jl
1 parent a7ef436 commit 5feb32f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gamma.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ function gamma(_x::Float16)
8989
return Float16(_x<0 ? Float32(π)*den/(s*z*num) : z*num/den)
9090
end
9191

92+
_gamma(x) = gamma(x) #easier than fixing this in other places.
9293
function gamma(n::Integer)
9394
n < 0 && throw(DomainError(n, "`n` must not be negative."))
9495
n == 0 && return Inf*one(n)

0 commit comments

Comments
 (0)