Skip to content

Commit 4e0222d

Browse files
committed
add gamma bigfloat and complex via loggamma
1 parent 5f60ab2 commit 4e0222d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/core.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,6 @@ function gamma(n::Integer)
125125
end
126126

127127
gamma_near_1(x) = evalpoly(x-one(x), (1.0, -0.5772156649015329, 0.9890559953279725, -0.23263776388631713))
128+
129+
gamma(x::BigFloat) = exp(loggamma(x))
130+
gamma(x::Complex) = exp(loggamma(x))

0 commit comments

Comments
 (0)