Skip to content

Commit

Permalink
Update nonlineareq.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pkofod committed Feb 3, 2024
1 parent 36f49e7 commit 46020cd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/src/nonlineareq.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ Assume that you have a residual system that you want to solve. This means that i
```
function F(x)
x^2
end
function FJ(Jx, x)
x^2, 2x
end
end
prob_obj = NLSolvers.ScalarObjective(
f=F,
fg=FJ,
)
function FJ(Jx, x)
x^2, 2x
end
prob_obj = NLSolvers.ScalarObjective(
f=F,
fg=FJ,
)
prob = NEqProblem(prob_obj; inplace = false)
Expand Down Expand Up @@ -86,7 +86,7 @@ function F_jacobian_powell!(Fx, Jx, x)
Fx, Jx
end
prob_obj = VectorObjective(F=F_powell!, J=F_jacobian_powell!)
prob_obj = VectorObjective(F=F_powell!, FJ=F_jacobian_powell!)
prob = NEqProblem(prob_obj)
x0 = [-1.0, 0.0, 0.0]
Expand Down

0 comments on commit 46020cd

Please sign in to comment.