Skip to content

Commit

Permalink
Fix sin for big interval
Browse files Browse the repository at this point in the history
  • Loading branch information
dpsanders committed Apr 10, 2018
1 parent 69d783e commit 564d060
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/intervals/trigonometric.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ half_pi(::Type{Float64}) = multiply_by_positive_constant(0.5, pi_interval(Float6
half_pi(::Type{T}) where {T} = 0.5 * pi_interval(T)
half_pi(x::T) where {T<:AbstractFloat} = half_pi(T)

two_pi(::Type{T}) where {T} = multiply_by_positive_constant(2.0, pi_interval(T))
two_pi(::Type{Float64}) = multiply_by_positive_constant(2.0, pi_interval(Float64))
two_pi(::Type{T}) where {T} = 2 * pi_interval(T)

range_atan2(::Type{T}) where {T<:Real} = Interval(-(pi_interval(T).hi), pi_interval(T).hi)
half_range_atan2(::Type{T}) where {T} = (temp = half_pi(T); Interval(-(temp.hi), temp.hi) )
Expand Down

0 comments on commit 564d060

Please sign in to comment.