Skip to content

Commit 8a51c1c

Browse files
committed
add more tests
1 parent 91ba40b commit 8a51c1c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/besselj_test.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,10 @@ for v in nu, xx in x
104104
xx *= v
105105
@test isapprox(Bessels._besselj(v, xx), SpecialFunctions.besselj(v, xx), rtol=5e-11)
106106
end
107+
108+
## test large arguments
109+
@test isapprox(Bessels._besselj(10.0, 150.0), SpecialFunctions.besselj(10.0, 150.0), rtol=1e-12)
110+
111+
# test BigFloat for single point
112+
@test isapprox(Bessels._besselj(big"2000", big"1500.0"), SpecialFunctions.besselj(big"2000", big"1500"), rtol=5e-20)
113+
@test isapprox(Bessels._besselj(big"20", big"1500.0"), SpecialFunctions.besselj(big"20", big"1500"), rtol=5e-20)

0 commit comments

Comments
 (0)