Skip to content

Commit

Permalink
fix mtk tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Oct 19, 2023
1 parent f80e7a9 commit c7874e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/tutorials/modelingtoolkit.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ We can tell MTK to generate a computable form of this analytical Jacobian via `j
use efficient forms:

```@example mtk
prob = NonlinearProblem(ns, guess, ps, jac = true)
prob = NonlinearProblem(ns, u0, ps, jac = true)
sol = solve(prob, NewtonRaphson())
```

Expand Down Expand Up @@ -90,7 +90,7 @@ Using ModelingToolkit, we can build and solve the simplified system:

```@example mtk
u0 = [u5 .=> 1.0]
prob = NonlinearProblem(sys, u0, ps)
prob = NonlinearProblem(sys, u0)
sol = solve(prob, NewtonRaphson())
```

Expand Down

0 comments on commit c7874e9

Please sign in to comment.