Skip to content

Commit 022da80

Browse files
Update src/gamma.jl
Co-authored-by: Michael Helton <[email protected]>
1 parent 372faa6 commit 022da80

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
@@ -86,7 +86,7 @@ function gamma(_x::Float16)
8686
end
8787
num = evalpoly(x, (1.0f0, 0.4170254f0, 0.24081704f0, 0.04071509f0, 0.015839573f0))
8888
den = x*evalpoly(x, (1.0f0, 0.9942411f0, -0.17434932f0, -0.13577922f0, 0.030284522f0))
89-
return Float16(_x<0 ? Float32(π)*den/(s*z*num) : z*num/den)
89+
return Float16(_x < 0 ? Float32(π)*den / (s*z*num) : z * num / den)
9090
end
9191

9292
_gamma(x) = gamma(x) #easier than fixing this in other places.

0 commit comments

Comments
 (0)