Skip to content

Commit

Permalink
Add bisection for vector of IntervalBox
Browse files Browse the repository at this point in the history
  • Loading branch information
dpsanders committed May 8, 2017
1 parent 926945f commit 77bf8a7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bisection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@ function bisection{T<:Union{Interval,IntervalBox}}(f, X::T; tolerance=1e-3, debu
bisection(f, X2, tolerance=tolerance)]

end


function bisection{T<:Union{Interval,IntervalBox}}(f, V::Vector{T}; tolerance=1e-3, debug=false)

return vcat([bisection(f, X, tolerance=tolerance, debug=debug) for X in V)

end

0 comments on commit 77bf8a7

Please sign in to comment.