Skip to content

Commit

Permalink
Update function_accuracy.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySarnoff authored May 30, 2018
1 parent 13cc28a commit a3823ab
Showing 1 changed file with 2 additions and 71 deletions.
73 changes: 2 additions & 71 deletions test/function_accuracy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ end


rand_vals = rand1_vals;
rand_bigf = BigFloat.(rand_vals);
rand_bigf = rand1_bigf;

@test test_atol(rand_bigf, rand_vals, exp, 1.0e-31)
@test test_atol(rand_bigf, rand_vals, exp, 1.0e-30)
@test test_rtol(rand_bigf, rand_vals, exp, 1.0e-30)

@test test_atol(rand_bigf, rand_vals, sin, 1.0e-31)
Expand All @@ -115,72 +115,3 @@ rand_bigf = BigFloat.(rand_vals);
@test test_atol(rand_bigf, rand_vals, asinh, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, asinh, 1.0e-27)

@test test_atol(rand_bigf, rand_vals, exp, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, exp, 1.0e-30)

@test test_atol(rand_bigf, rand_vals, log, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, log, 1.0e-31)

@test test_atol(rand_bigf, rand_vals, sin, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, sin, 1.0e-30)

@test test_atol(rand_bigf, rand_vals, cos, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, cos, 1.0e-31)

@test test_atol(rand_bigf, rand_vals, tan, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, tan, 1.0e-30)

@test test_atol(rand_bigf, rand_vals, asin, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, asin, 1.0e-30)

@test test_atol(rand_bigf, rand_vals, acos, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, acos, 1.0e-29)

@test test_atol(rand_bigf, rand_vals, atan, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, atan, 1.0e-30)

@test test_atol(rand_bigf, rand_vals, sinh, 1.0e-31) # 1.0e-30
@test test_rtol(rand_bigf, rand_vals, sinh, 1.0e-28)

@test test_atol(rand_bigf, rand_vals, cosh, 1.0e-31) # 1.0e-30
@test test_rtol(rand_bigf, rand_vals, cosh, 1.0e-31)

@test test_atol(rand_bigf, rand_vals, tanh, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, tanh, 1.0e-28)

@test test_atol(rand_bigf, rand_vals, asinh, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, asinh, 1.0e-27)

@test test_atol(rand1_bigf, rand1_vals, acosh, 1.0e-30)
@test test_rtol(rand1_bigf, rand1_vals, acosh, 1.0e-28)

@test test_atol(rand_bigf, rand_vals, atanh, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, atanh, 1.0e-28)


rand_vals = rand1_vals;
rand_bigf = BigFloat.(rand_vals);

@test test_atol(rand_bigf, rand_vals, exp, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, exp, 1.0e-30)

@test test_atol(rand_bigf, rand_vals, sin, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, sin, 1.0e-30)

@test test_atol(rand_bigf, rand_vals, cos, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, cos, 1.0e-28)

@test test_atol(rand_bigf, rand_vals, tan, 1.0e-24)
@test test_rtol(rand_bigf, rand_vals, tan, 1.0e-28)

@test test_atol(rand_bigf, rand_vals, sinh, 1.0e-30)
@test test_rtol(rand_bigf, rand_vals, sinh, 1.0e-28)

@test test_atol(rand_bigf, rand_vals, cosh, 1.0e-30)
@test test_rtol(rand_bigf, rand_vals, cosh, 1.0e-31)

@test test_atol(rand_bigf, rand_vals, tanh, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, tanh, 1.0e-28)

@test test_atol(rand_bigf, rand_vals, asinh, 1.0e-31)
@test test_rtol(rand_bigf, rand_vals, asinh, 1.0e-27)

0 comments on commit a3823ab

Please sign in to comment.