Skip to content

Commit 54c0bd0

Browse files
authored
Update specialfunctions.jl
1 parent 8336ae1 commit 54c0bd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/specialfunctions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ end
6363

6464
function ogamma(x::Number)
6565
if isinteger(x) && x<0
66-
0.0
66+
zero(float(x))
6767
else
68-
1.0/gamma(x)
68+
inv(gamma(x))
6969
end
7070
end
7171

0 commit comments

Comments
 (0)