Skip to content
This repository has been archived by the owner on Mar 11, 2020. It is now read-only.

Commit

Permalink
Uncomment tests
Browse files Browse the repository at this point in the history
  • Loading branch information
musm committed Jan 3, 2017
1 parent 80e72db commit bf3daa6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/accuracy.jl
Expand Up @@ -7,22 +7,22 @@ tol = 5
@testset "Accuracy (in ulp) for $T" for T in (Float64,Float32)
println("Accuracy tests for $T")

# xx = map(T, vcat(-10:0.0002:10, -1000:0.001:1000, -120:0.0023:1000, -1000:0.02:2000))
# test_acc(T, Dict(Amal.exp => Base.exp), xx, tol)
# test_acc(T, Dict(Amal.exp => Base.exp), denormals(T), tol)
xx = map(T, vcat(-10:0.0002:10, -1000:0.001:1000, -120:0.0023:1000, -1000:0.02:2000))
test_acc(T, Dict(Amal.exp => Base.exp), xx, tol)
test_acc(T, Dict(Amal.exp => Base.exp), denormals(T), tol)

# xx = map(T, vcat(-10:0.0002:10, -120:0.023:1000, -1000:0.02:2000))
# test_acc(T, Dict(Amal.exp2 => Base.exp2), xx, tol)
xx = map(T, vcat(-10:0.0002:10, -120:0.023:1000, -1000:0.02:2000))
test_acc(T, Dict(Amal.exp2 => Base.exp2), xx, tol)


xx = map(T, vcat(-10:0.000021:10, -35:0.00023:1000, -300:0.001:300))
xx = map(T, vcat(-10:0.00021:10, -35:0.00023:1000, -300:0.001:300))
test_acc(T, Dict(Amal.exp10 => Base.exp10), xx, tol)
test_acc(T, Dict(Base.exp10 => Base.exp10), xx, tol)


# xx = map(T, vcat(0.0001:0.0001:10, 0.001:0.1:10000, 1.1.^(-1000:1000), 2.1.^(-1000:1000)))
# test_acc(T, Dict(Amal.log => Base.log), xx, tol)
# test_acc(T, Dict(Amal.log => Base.log), denormals(T), tol)
xx = map(T, vcat(0.0001:0.0001:10, 0.001:0.1:10000, 1.1.^(-1000:1000), 2.1.^(-1000:1000)))
test_acc(T, Dict(Amal.log => Base.log), xx, tol)
test_acc(T, Dict(Amal.log => Base.log), denormals(T), tol)


# xx = map(T, vcat(0:0.2:10000, 1.1.^(-1000:1000), 2.1.^(-1000:1000)))
Expand Down

0 comments on commit bf3daa6

Please sign in to comment.