Skip to content

Commit 7ce1a11

Browse files
committed
lambertw: improve test precision
1 parent f869cc8 commit 7ce1a11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/lambertw.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ end
131131
z = BigFloat(10)^(-12)
132132
for _ in 1:300
133133
@test lambertwbp(Float64(z)) 1 + lambertw(z - big(inve)) atol=5e-16
134-
@test lambertwbp(Float64(z), -1) 1 + lambertw(z - big(inve), -1) atol=5e-15
134+
@test lambertwbp(Float64(z), -1) 1 + lambertw(z - big(inve), -1) atol=1e-15
135135

136136
z *= 1.1
137137
if z > 0.23 break end
@@ -142,5 +142,5 @@ end
142142
# test the expansion about branch point for k=-1,
143143
# by comparing to exact BigFloat calculation.
144144
@test @inferred(lambertwbp(1e-20, -1)) 1 + lambertw(-big(inve) + BigFloat(10)^(-20), -1) atol=1e-16
145-
@test @inferred(lambertwbp(Complex(.01, .01), -1)) Complex(-0.2755038208041206, -0.1277888928494641) atol=1e-14
145+
@test @inferred(lambertwbp(Complex(.01, .01), -1)) Complex(-0.27550382080412062443536, -0.12778889284946406573511) atol=1e-16
146146
end

0 commit comments

Comments
 (0)