diff --git a/test/interval_tests/complex.jl b/test/interval_tests/complex.jl index 6555e3d..1f67638 100644 --- a/test/interval_tests/complex.jl +++ b/test/interval_tests/complex.jl @@ -16,3 +16,10 @@ using ValidatedNumerics @test a / a == 1 @test a^2 == -1 end + +@testset "Complex functions" begin + Z = (3 ± 1e-7) + (4 ± 1e-7)*im + @test sin(Z) == Interval(3.853734949309744, 3.8537411265295507) - Interval(27.016810169394066, 27.016816346613883)*im + + @test exp(-im * Interval(π)) == Interval(-1.0, -0.9999999999999999) - Interval(1.224646799147353e-16, 1.2246467991473532e-16)*im +end