Skip to content

Commit fed39ca

Browse files
committed
add news
1 parent b167f1a commit fed39ca

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ For bug fixes, performance enhancements, or fixes to unexported functions we wil
1818

1919
### Fixed
2020
- fix cutoff in `bessely` to not return error for integer orders and small arguments (#33)
21+
- fix NaN return for small arguments (issue [#35]) in bessely (#40)
2122

2223
# Version 0.1.0
2324

src/bessely.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ function bessely_power_series(v, x::T) where T
351351
out2 = zero(T)
352352
a = (x/2)^v
353353
# check for underflow and return limit for small arguments
354-
iszero(a) && return -T(Inf)
354+
iszero(a) && return (-T(Inf), a)
355355

356356
b = inv(a)
357357
a /= gamma(v + one(T))

0 commit comments

Comments
 (0)