Skip to content

Commit c7874e9

Browse files
fix mtk tutorial
1 parent f80e7a9 commit c7874e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/tutorials/modelingtoolkit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ We can tell MTK to generate a computable form of this analytical Jacobian via `j
4848
use efficient forms:
4949

5050
```@example mtk
51-
prob = NonlinearProblem(ns, guess, ps, jac = true)
51+
prob = NonlinearProblem(ns, u0, ps, jac = true)
5252
sol = solve(prob, NewtonRaphson())
5353
```
5454

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

9191
```@example mtk
9292
u0 = [u5 .=> 1.0]
93-
prob = NonlinearProblem(sys, u0, ps)
93+
prob = NonlinearProblem(sys, u0)
9494
sol = solve(prob, NewtonRaphson())
9595
```
9696

0 commit comments

Comments
 (0)