From 1fdd283990f06aacf31480397013bd70d1664526 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas Date: Tue, 25 Jul 2023 00:20:59 +0000 Subject: [PATCH] Format .jl files --- lib/SimpleNonlinearSolve/src/itp.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/SimpleNonlinearSolve/src/itp.jl b/lib/SimpleNonlinearSolve/src/itp.jl index 1f1efbafe..fa390aa45 100644 --- a/lib/SimpleNonlinearSolve/src/itp.jl +++ b/lib/SimpleNonlinearSolve/src/itp.jl @@ -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 @@ -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) @@ -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