Skip to content

Commit 1d6157c

Browse files
Merge pull request #417 from SciML/ChrisRackauckas-patch-1
Update stiff ODE tutorial
2 parents a7fdd90 + 56c0a54 commit 1d6157c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/advanced/02-advanced_ODE_solving.jmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ the Julia code for this.
173173
```julia
174174
using ModelingToolkit
175175
de = modelingtoolkitize(prob)
176-
ModelingToolkit.generate_jacobian(de...)[2] # Second is in-place
176+
ModelingToolkit.generate_jacobian(de)[2] # Second is in-place
177177
```
178178

179179
which outputs:
@@ -201,7 +201,7 @@ which outputs:
201201
Now let's use that to give the analytical solution Jacobian:
202202

203203
```julia
204-
jac = eval(ModelingToolkit.generate_jacobian(de...)[2])
204+
jac = eval(ModelingToolkit.generate_jacobian(de)[2])
205205
f = ODEFunction(rober, jac=jac)
206206
prob_jac = ODEProblem(f,[1.0,0.0,0.0],(0.0,1e5),(0.04,3e7,1e4))
207207
```

0 commit comments

Comments
 (0)