Skip to content

Commit ab6a5e5

Browse files
committed
add more negative arg tests
1 parent aea768b commit ab6a5e5

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

test/besseli_test.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,13 @@ end
105105
### tests for negative arguments
106106

107107
(v, x) = 12.0, 3.2
108-
@test besseli(v,x) 7.1455266650203694069897133431E-7
108+
@test besseli(v,x) 7.1455266650203694069897133431e-7
109+
110+
(v,x) = 13.0, -1.0
111+
@test besseli(v,x) -1.995631678207200756444e-14
112+
113+
(v,x) = 12.6, -3.0
114+
@test besseli(v,x) -2.725684975265100582482e-8 + 8.388795775899337839603e-8 * im
109115

110116
(v, x) = -8.0, 4.2
111117
@test besseli(v,x) 0.0151395115677545706602449919627

test/besselk_test.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ end
125125
(v, x) = 12.0, 3.2
126126
@test besselk(v,x) 56331.504348755621996013084096
127127

128+
(v,x) = 13.0, -1.0
129+
@test besselk(v,x) -1921576392792.994084565 - 6.26946181952681217841e-14*im
130+
131+
(v,x) = 12.6, -3.0
132+
@test besselk(v,x) -135222.7926354826692727 - 416172.9627453652120223*im
133+
128134
(v, x) = -8.0, 4.2
129135
@test besselk(v,x) 3.65165949039881135495282699061
130136

0 commit comments

Comments
 (0)