File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 46
46
# The boundary should be carefully determined for accuracy and machine roundoff.
47
47
# We use 10.41.4 from the Digital Library of Math Functions [5].
48
48
# This is also 9.7.8 in Abramowitz and Stegun [6].
49
+ # K_{nu}(nu*z) = sqrt(pi / 2nu) *exp(-nu*n)/(1+z^2)^1/4 * sum((-1^k)U_k(p) /nu^k)) for k=0 -> infty
49
50
# The U polynomials are the most tricky. They are listed up to order 4 in Table 9.39
50
51
# of [6]. For Float32, >=4 U polynomials are usually necessary. For Float64 values,
51
52
# >= 8 orders are needed. However, this largely depends on the cutoff of order you need.
54
55
#
55
56
# However, calculation of these higher order U polynomials are tedious. These have been hand
56
57
# calculated and somewhat crosschecked with symbolic math. There could be errors. They are listed
57
- # here as a reference as higher orders are impossible to find and needed for any meaningfully accurate calculation.
58
+ # here as a reference as higher orders are impossible to find while being needed for any meaningfully accurate calculation.
58
59
59
60
# u0 = one(x)
60
61
# u1 = p / 24 * (3 - 5*p^2) * -1 / v
You can’t perform that action at this time.
0 commit comments