Skip to content

Commit

Permalink
Merge pull request #60 from ranocha/hr/format
Browse files Browse the repository at this point in the history
format
  • Loading branch information
ChrisRackauckas authored Mar 31, 2023
2 parents 376fd04 + 56c2101 commit 18d4ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/SimpleNonlinearSolve/src/alefeld.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem,
c = a - (b - a) / (f(b) - f(a)) * f(a)

fc = f(c)
(a == c || b == c) &&
(a == c || b == c) &&
return SciMLBase.build_solution(prob, alg, c, fc;
retcode = ReturnCode.FloatingPointLimit,
left = a,
left = a,
right = b)
iszero(fc) &&
return SciMLBase.build_solution(prob, alg, c, fc;
Expand Down

0 comments on commit 18d4ca2

Please sign in to comment.