Skip to content

Commit

Permalink
Merge pull request #75 from SciML/auto-juliaformatter-pr
Browse files Browse the repository at this point in the history
Automatic JuliaFormatter.jl run
  • Loading branch information
ChrisRackauckas authored Jul 30, 2023
2 parents 75bef75 + 1fdd283 commit c91ce26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/SimpleNonlinearSolve/src/itp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::ITP,
n0 = alg.n0
n_h = ceil(log2(abs(right - left) / (2 * ϵ)))
mid = (left + right) / 2
x_f = left + (right - left) * (fl/(fl - fr))
x_f = left + (right - left) * (fl / (fl - fr))
xt = left
xp = left
r = zero(left) #minmax radius
Expand All @@ -94,7 +94,7 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::ITP,
δ = k1 * (span^k2)

## Interpolation step ##
x_f = left + (right - left) * (fl/(fl - fr))
x_f = left + (right - left) * (fl / (fl - fr))

## Truncation step ##
σ = sign(mid - x_f)
Expand Down Expand Up @@ -125,8 +125,8 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::ITP,
fl = yp
else
return SciMLBase.build_solution(prob, alg, xp, yps;
retcode = ReturnCode.Success, left = xp,
right = xp)
retcode = ReturnCode.Success, left = xp,
right = xp)
end
i += 1
mid = (left + right) / 2
Expand Down

0 comments on commit c91ce26

Please sign in to comment.