Skip to content

Commit f4842e8

Browse files
committed
init
1 parent 670c5be commit f4842e8

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/src/introduction_to_catalyst/introduction_to_catalyst.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ We first import the basic packages we'll need:
1212

1313
```@example tut1
1414
# If not already installed, first hit "]" within a Julia REPL. Then type:
15-
# add Catalyst DifferentialEquations Plots Latexify
15+
# add Catalyst OrdinaryDiffEq Plots Latexify
1616
17-
using Catalyst, DifferentialEquations, Plots, Latexify
17+
using Catalyst, OrdinaryDiffEq, Plots, Latexify
1818
```
1919

2020
We now construct the reaction network. The basic types of arrows and predefined
@@ -160,7 +160,7 @@ underlying problem.
160160

161161
At this point we are all set to solve the ODEs. We can now use any ODE solver
162162
from within the
163-
[DifferentialEquations.jl](https://docs.sciml.ai/DiffEqDocs/stable/solvers/ode_solve/)
163+
[OrdinaryDiffEq.jl](https://docs.sciml.ai/DiffEqDocs/stable/solvers/ode_solve/)
164164
package. We'll use the recommended default explicit solver, `Tsit5()`, and then
165165
plot the solutions:
166166

@@ -169,7 +169,7 @@ sol = solve(oprob, Tsit5(), saveat=10.)
169169
plot(sol)
170170
```
171171
We see the well-known oscillatory behavior of the repressilator! For more on the
172-
choices of ODE solvers, see the [DifferentialEquations.jl
172+
choices of ODE solvers, see the [OrdinaryDiffEq.jl
173173
documentation](https://docs.sciml.ai/DiffEqDocs/stable/solvers/ode_solve/).
174174

175175
---
@@ -182,6 +182,9 @@ Gillespie's `Direct` method, and then solve it to generate one realization of
182182
the jump process:
183183

184184
```@example tut1
185+
# imports the JumpProcesses packages
186+
using JumpProcesses
187+
185188
# redefine the initial condition to be integer valued
186189
u₀map = [:m₁ => 0, :m₂ => 0, :m₃ => 0, :P₁ => 20, :P₂ => 0, :P₃ => 0]
187190
@@ -237,6 +240,9 @@ model by creating an `SDEProblem` and solving it similarly to what we did for OD
237240
above:
238241

239242
```@example tut1
243+
# imports the StochasticDiffEq package for SDE simulations
244+
using StochasticDiffEq
245+
240246
# SDEProblem for CLE
241247
sprob = SDEProblem(bdp, u₀, tspan, p)
242248

0 commit comments

Comments
 (0)