Skip to content

Commit 0c41812

Browse files
authored
Throw MethodError instead of StackOverflowError for gamma, loggamma, and logabsgamma (#347)
* Throw `MethodError` instead of `StackOverflowError` for `gamma`,`loggamma` and `logabsgamma` * Bump version * Fix `logabsgamma(::Float16)` * Remove whitespace * Dispatch to internal functions According to @stevengj's suggestion * Load `logtwo` * Fix tests * Fix type stability issue
1 parent 74fd16f commit 0c41812

File tree

4 files changed

+130
-180
lines changed

4 files changed

+130
-180
lines changed

src/SpecialFunctions.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ using IrrationalConstants:
99
inv2π,
1010
invsqrt2,
1111
invsqrt2π,
12+
logtwo,
1213
logπ,
1314
log2π
1415

0 commit comments

Comments
 (0)