From 56c0a54c563930c8bb97d68c2d53d4ee79107082 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Wed, 7 Jul 2021 07:53:47 -0400 Subject: [PATCH] Update stiff ODE tutorial --- tutorials/advanced/02-advanced_ODE_solving.jmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/advanced/02-advanced_ODE_solving.jmd b/tutorials/advanced/02-advanced_ODE_solving.jmd index 4e7a44c7..7b956d7d 100644 --- a/tutorials/advanced/02-advanced_ODE_solving.jmd +++ b/tutorials/advanced/02-advanced_ODE_solving.jmd @@ -173,7 +173,7 @@ the Julia code for this. ```julia using ModelingToolkit de = modelingtoolkitize(prob) -ModelingToolkit.generate_jacobian(de...)[2] # Second is in-place +ModelingToolkit.generate_jacobian(de)[2] # Second is in-place ``` which outputs: @@ -201,7 +201,7 @@ which outputs: Now let's use that to give the analytical solution Jacobian: ```julia -jac = eval(ModelingToolkit.generate_jacobian(de...)[2]) +jac = eval(ModelingToolkit.generate_jacobian(de)[2]) f = ODEFunction(rober, jac=jac) prob_jac = ODEProblem(f,[1.0,0.0,0.0],(0.0,1e5),(0.04,3e7,1e4)) ```