JuliaIntervals / IntervalRootFinding.jl

Library for finding the roots of a function using interval arithmetic
https://juliaintervals.github.io/IntervalRootFinding.jl/
Other
127 stars 26 forks source link

roots hangs with double roots #74

Closed dpsanders closed 4 years ago

dpsanders commented 6 years ago
 rts = roots(x->exp(x^2) - cos(x), -10..10)

seems to hang

dpsanders commented 4 years ago

This now works:

julia> rts = roots(x->exp(x^2) - cos(x), -10..10)
2-element Array{Root{Interval{Float64}},1}:
 Root([1.01295e-08, 3.30576e-08], :unknown)
 Root([-5.98024e-08, 1.01296e-08], :unknown)