Skip to content

Commit 00b6a51

Browse files
Simplify
1 parent 4ba404c commit 00b6a51

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
44
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
55
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
66
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
7+
StochasticDiffEq = "789caeaf-c7a9-5a7d-9973-96adeb23e2a0"
78

89
[compat]
910
Documenter = "1"

docs/src/interfaces/Ensembles.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ achieved with
179179

180180
```julia
181181
using Distributed
182-
using DifferentialEquations
182+
using OrdinaryDiffEq
183183
using Plots
184184

185185
addprocs()
186-
@everywhere using DifferentialEquations
186+
@everywhere using OrdinaryDiffEq
187187
```
188188

189189
Now let's define the linear ODE, which is our base problem:
@@ -235,7 +235,7 @@ Because the memory is shared across the different threads, it is not necessary t
235235
use the `@everywhere` macro. Instead, the same problem can be implemented simply as:
236236

237237
```@example ensemble1_2
238-
using DifferentialEquations
238+
using OrdinaryDiffEq
239239
prob = ODEProblem((u, p, t) -> 1.01u, 0.5, (0.0, 1.0))
240240
function prob_func(prob, i, repeat)
241241
remake(prob, u0 = rand() * prob.u0)
@@ -293,7 +293,7 @@ end
293293
Now we build the SDE with these functions:
294294

295295
```@example ensemble2
296-
using DifferentialEquations
296+
using StochasticDiffEq
297297
p = [1.5, 1.0, 0.1, 0.1]
298298
prob = SDEProblem(f, g, [1.0, 1.0], (0.0, 10.0), p)
299299
```
@@ -356,7 +356,7 @@ end
356356
Our `prob_func` will simply randomize the initial condition:
357357

358358
```@example ensemble3
359-
using DifferentialEquations
359+
using OrdinaryDiffEq
360360
# Linear ODE which starts at 0.5 and solves from t=0.0 to t=1.0
361361
prob = ODEProblem((u, p, t) -> 1.01u, 0.5, (0.0, 1.0))
362362
@@ -427,7 +427,7 @@ function σ(du, u, p, t)
427427
du[i] = 0.87 * u[i]
428428
end
429429
end
430-
using DifferentialEquations
430+
using StochasticDiffEq
431431
prob = SDEProblem(f, σ, ones(4, 2) / 2, (0.0, 1.0)) #prob_sde_2Dlinear
432432
```
433433

0 commit comments

Comments
 (0)