Skip to content

Commit befaeb6

Browse files
authored
Merge pull request #68 from daanhb/bessel
Besselroots for larger nu
2 parents 3b77f0f + 5152036 commit befaeb6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/besselroots.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,14 @@ function besselroots(nu::Float64, n::Integer)
3333
for k in min(n,6)+1:n
3434
x[k] = McMahon(nu, k)
3535
end
36+
elseif nu > 5
37+
for k in 1:n
38+
x[k] = McMahon(nu, k)
39+
end
3640
end
3741
x
3842
end
3943

40-
4144
function McMahon(nu::Float64, k::Integer)
4245
# McMahon's expansion. This expansion gives very accurate approximation
4346
# for the sth zero (s >= 7) in the whole region V >=- 1, and moderate

0 commit comments

Comments
 (0)