|
19 | 19 | @test logerfc(Float32(1000)) ≈ -1.0000074801207219e6 rtol=2*eps(Float32)
|
20 | 20 | @test logerfc(Float64(1000)) ≈ -1.0000074801207219e6 rtol=2*eps(Float64)
|
21 | 21 | @test logerfc(1000) ≈ -1.0000074801207219e6 rtol=2*eps(Float32)
|
22 |
| - @test logerfc(Float32(10000)) ≈ log(erfc(BigFloat(10000, 100))) rtol=2*eps(Float32) |
23 |
| - @test logerfc(Float64(10000)) ≈ log(erfc(BigFloat(10000, 100))) rtol=2*eps(Float64) |
| 22 | + @test logerfc(Float32(10000)) ≈ log(erfc(BigFloat(10000, precision=100))) rtol=2*eps(Float32) |
| 23 | + @test logerfc(Float64(10000)) ≈ log(erfc(BigFloat(10000, precision=100))) rtol=2*eps(Float64) |
24 | 24 |
|
25 | 25 | @test_throws MethodError logerfcx(Float16(1))
|
26 | 26 | @test_throws MethodError logerfcx(Float16(-1))
|
|
95 | 95 | @test erfcx(BigFloat(1.8e88)) ≈ erfcx(1.8e88) rtol=4*eps()
|
96 | 96 | @test isnan(erfcx(BigFloat(NaN)))
|
97 | 97 |
|
98 |
| - @test logerfc(BigFloat(1000, 100)) ≈ -1.0000074801207219e6 rtol=2*eps(Float64) |
| 98 | + @test logerfc(BigFloat(1000, precision=100)) ≈ -1.0000074801207219e6 rtol=2*eps(Float64) |
99 | 99 | @test isnan(logerfc(BigFloat(NaN)))
|
100 | 100 |
|
101 | 101 | @test_throws MethodError erfi(big(1.0))
|
|
155 | 155 | @test isnan(logerf(0, NaN))
|
156 | 156 | @test isnan(logerf(NaN, NaN))
|
157 | 157 | @test logerf(-1e-30, 1e-30) ≈ -68.2636233716261799887769930733
|
158 |
| - @test logerf(1e-30, 2e-30) ≈ -68.9567705521861252981942251947 |
| 158 | + @test logerf(1e-30, 2e-30) ≈ -68.9567705521861252981942251947 |
159 | 159 | @test logerf(-2e-30, -1e-30) ≈ -68.9567705521861252981942251947
|
160 | 160 | @test_throws DomainError logerf(2, 1)
|
161 | 161 | end
|
|
0 commit comments