Skip to content

Commit

Permalink
add missing atan2 test
Browse files Browse the repository at this point in the history
  • Loading branch information
jrevels committed May 2, 2017
1 parent 92a6d47 commit f7d84e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/DualTest.jl
Expand Up @@ -448,6 +448,8 @@ for N in (0,3), M in (0,4), V in (Int, Float32)
@test typeof(sqrt(NESTED_FDNUM)) === typeof(NESTED_FDNUM)
end

@test dual_isapprox(atan2(abs(FDNUM), abs(FDNUM2)), atan(abs(FDNUM) / abs(FDNUM2)))

@test dual_isapprox(fma(FDNUM, FDNUM2, FDNUM3), Dual(fma(PRIMAL, PRIMAL2, PRIMAL3), PRIMAL*PARTIALS2 + PRIMAL2*PARTIALS + PARTIALS3))
@test dual_isapprox(fma(FDNUM, FDNUM2, PRIMAL3), Dual(fma(PRIMAL, PRIMAL2, PRIMAL3), PRIMAL*PARTIALS2 + PRIMAL2*PARTIALS))
@test dual_isapprox(fma(PRIMAL, FDNUM2, FDNUM3), Dual(fma(PRIMAL, PRIMAL2, PRIMAL3), PRIMAL*PARTIALS2 + PARTIALS3))
Expand Down

0 comments on commit f7d84e8

Please sign in to comment.