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

Commit fb6880c

Browse files
Update src/halley.jl
1 parent 6380a9f commit fb6880c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/halley.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function SciMLBase.__solve(prob::NonlinearProblem,
7878
end
7979
iszero(fx) &&
8080
return SciMLBase.build_solution(prob, alg, x, fx; retcode = ReturnCode.Success)
81-
Δx = (2*dfx^2 - fx*d2fx) \ 2fx*dfx
81+
Δx = (2*dfx^2 - fx*d2fx) \ (2fx*dfx)
8282
x -= Δx
8383
if isapprox(x, xo, atol = atol, rtol = rtol)
8484
return SciMLBase.build_solution(prob, alg, x, fx; retcode = ReturnCode.Success)

0 commit comments

Comments
 (0)