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

Commit aa6ddec

Browse files
Update src/brent.jl
1 parent ae46147 commit aa6ddec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/brent.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::Brent, args...;
1313
a, b = prob.tspan
1414
fa, fb = f(a), f(b)
1515
ϵ = eps(convert(typeof(fa), 1.0))
16-
atol = abstol !== nothing ? abstol : minimum(eps(left), eps(right))
16+
atol = abstol !== nothing ? abstol : min(eps(left), eps(right))
1717

1818
if iszero(fa)
1919
return SciMLBase.build_solution(prob, alg, a, fa;

0 commit comments

Comments
 (0)