Skip to content

Commit

Permalink
close issue JuliaMath#162
Browse files Browse the repository at this point in the history
  • Loading branch information
jverzani committed Aug 16, 2019
1 parent 95a79ef commit 5f6ce7c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bracketing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,11 @@ function find_zero(fs, x0, method::M;
options = init_options(method, state; kwargs...)

# check if tolerances are exactly 0
tol = max(options.xabstol, options.xreltol)
ftol = max(options.abstol, options.reltol)
iszero_tol = iszero(options.xabstol) && iszero(options.xreltol) && iszero(options.abstol) && iszero(options.reltol)

l = (verbose && isa(tracks, NullTracks)) ? Tracks(eltype(state.xn1)[], eltype(state.fxn1)[]) : tracks

if iszero(tol) && iszero(ftol)
if iszero_tol
if T <: FloatNN
return find_zero(F, x, BisectionExact(); tracks=l, verbose=verbose, kwargs...)
else
Expand Down

0 comments on commit 5f6ce7c

Please sign in to comment.