Skip to content

Commit 3bd7a96

Browse files
committed
add cbrt
1 parent c73fc40 commit 3bd7a96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/U_polynomials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function Uk_poly_Jn(p, v, p2, x::T) where T <: Float64
2-
if v > 5.0 + 1.00033*x + (1427.61*x)^(1/3)
2+
if v > 5.0 + 1.00033*x + cbrt(1427.61*x)
33
return Uk_poly10(p, v, p2, even_odd_poly_minus)
44
else
55
return Uk_poly20(p, v, p2, even_odd_poly_minus)

src/besselj.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function _besselj(nu, x)
166166
(x > large_arg_cutoff && x > 20.0) && return besselj_large_argument(nu, x)
167167

168168

169-
debye_cutoff = 2.0 + 1.00035*x + (302.681*x)^(1/3)
169+
debye_cutoff = 2.0 + 1.00035*x + cbrt(302.681*x)
170170
nu > debye_cutoff && return besselj_debye(nu, x)
171171

172172
if nu >= x

0 commit comments

Comments
 (0)