Skip to content

Commit 38f9a54

Browse files
committed
fix tests
1 parent 6a06ada commit 38f9a54

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Float128/besselj.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#=function besselj0(x::BigFloat)
1+
function besselj0(x::BigFloat)
22
x = abs(x)
33
T = eltype(x)
44
if iszero(x)
@@ -67,4 +67,4 @@
6767
return z
6868
end
6969
end
70-
=#
70+

src/besselj.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ function besselj0(x::T) where T
6060
a = SQ2OPI(T) * sqrt(xinv) * p
6161

6262
q = (-1/8, 25/384, -1073/5120, 375733/229376, -55384775/2359296)
63-
xn = fma(xinv, evalpoly(x2, q), - PIO4(T))
64-
b = cos(x)*cos(xn) - sin(x)*sin(xn)#cos(x + xn)
63+
xn = muladd(xinv, evalpoly(x2, q), - PIO4(T))
64+
b = cos(x)*cos(xn) - sin(x)*sin(xn)
6565
#b = cos(x + xn)
6666
return a * b
6767
end

0 commit comments

Comments
 (0)