Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 98b9f78

Browse files
committed
Small change to Ridder
1 parent 22a6235 commit 98b9f78

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ridder.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,9 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::Ridder, args...;
6969
if iszero(fm)
7070
right = mid
7171
fr = fm
72-
elseif sign(fm) == sign(fl)
72+
else
7373
left = mid
7474
fl = fm
75-
else
76-
right = mid
77-
fr = fm
7875
end
7976
i += 1
8077
end

0 commit comments

Comments
 (0)