@@ -41,7 +41,7 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem{IP, Tuple{T, T}}, alg::I
41
41
retcode = ReturnCode. ExactSolutionRight, left, right)
42
42
end
43
43
span = abs (right - left)
44
- k1 = T (alg. scaled_k1)/ span
44
+ k1 = T (alg. scaled_k1) / span
45
45
n0 = T (alg. n0)
46
46
n_h = exponent (span / (2 * ϵ))
47
47
ϵ_s = ϵ * exp2 (n_h + n0)
@@ -61,11 +61,6 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem{IP, Tuple{T, T}}, alg::I
61
61
xt = ifelse (δ ≤ abs (diff), x_f + copysign (δ, diff), mid) # Truncation Step
62
62
63
63
xp = ifelse (abs (xt - mid) ≤ r, xt, mid - copysign (r, diff)) # Projection Step
64
- if span < 2 ϵ
65
- return SciMLBase. build_solution (
66
- prob, alg, xt, f (xt); retcode = ReturnCode. Success, left, right
67
- )
68
- end
69
64
yp = f (xp)
70
65
yps = yp * sign (fr)
71
66
if yps > T0
@@ -74,7 +69,7 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem{IP, Tuple{T, T}}, alg::I
74
69
left, fl = xp, yp
75
70
else
76
71
return SciMLBase. build_solution (
77
- prob, alg, xp, yps; retcode = ReturnCode. Success, left, right
72
+ prob, alg, xp, yps; retcode = ReturnCode. Success, left = xp , right = xp
78
73
)
79
74
end
80
75
0 commit comments