Skip to content

Commit 8f7a14d

Browse files
Merge pull request #188 from abhro/patch-1
Bind strange_attractors.jl docstrings to ODEProblems
2 parents ae84958 + 79a8cb6 commit 8f7a14d

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

lib/ODEProblemLibrary/src/strange_attractors.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function thomas_eqs(du, u, p, t)
1212
return du[3] = sin(x) - b * z
1313
end
1414

15+
thomas = ODEFunction(thomas_eqs)
1516
@doc doc"""
1617
Thomas' cyclically symmetric attractor equations
1718
@@ -29,7 +30,6 @@ with parameter ``b = 0.208186`` and initial conditions ``x(0)=1, y(0)=0, z(0)=0`
2930
3031
[Wikipedia](https://en.wikipedia.org/wiki/Thomas%27_cyclically_symmetric_attractor)
3132
"""
32-
thomas = ODEFunction(thomas_eqs)
3333
prob_ode_thomas = ODEProblem(thomas, [1.0, 0.0, 0.0], (0.0, 1.0), [0.208186])
3434

3535
## Lorenz
@@ -42,6 +42,7 @@ function lorenz_eqs(du, u, p, t)
4242
return du[3] = x * y - β * z
4343
end
4444

45+
lorenz = ODEFunction(lorenz_eqs)
4546
@doc doc"""
4647
Lorenz equations
4748
@@ -59,7 +60,6 @@ with parameters ``σ=10, ρ=28, β=8/3`` and initial conditions ``x(0)=1, y(0)=0
5960
6061
[Wikipedia](https://en.wikipedia.org/wiki/Lorenz_system)
6162
"""
62-
lorenz = ODEFunction(lorenz_eqs)
6363
prob_ode_lorenz = ODEProblem(lorenz, [1.0, 0.0, 0.0], (0.0, 1.0), [10.0, 28.0, 8 / 3])
6464

6565
## Aizawa
@@ -72,6 +72,7 @@ function aizawa_eqs(du, u, p, t)
7272
return du[3] = c + a * z - z^3 / 3 - (x^2 + y^2) * (1 + e * z) + f * z * x^3
7373
end
7474

75+
aizawa = ODEFunction(aizawa_eqs)
7576
@doc doc"""
7677
Aizawa equations
7778
@@ -87,7 +88,6 @@ with parameters ``a=0.95, b=0.7, c=0.6, d=3.5, e=0.25, f=0.1`` and initial condi
8788
8889
[Reference](https://journals.ametsoc.org/view/journals/atsc/20/2/1520-0469_1963_020_0130_dnf_2_0_co_2.xml)
8990
"""
90-
aizawa = ODEFunction(aizawa_eqs)
9191
prob_ode_aizawa = ODEProblem(aizawa, [1.0, 0.0, 0.0], (0.0, 1.0), [0.95, 0.7, 0.6, 3.5, 0.25, 0.1])
9292

9393
## Dadras
@@ -100,6 +100,7 @@ function dadras_eqs(du, u, p, t)
100100
return du[3] = d * x * y - e * z
101101
end
102102

103+
dadras = ODEFunction(dadras_eqs)
103104
@doc doc"""
104105
Dadras equations
105106
@@ -115,7 +116,6 @@ with parameters ``a=3, b=2.7, c=1.7, d=2, e=9`` and initial conditions ``x(0)=1,
115116
116117
[Reference](https://www.sciencedirect.com/science/article/abs/pii/S0375960109009591)
117118
"""
118-
dadras = ODEFunction(dadras_eqs)
119119
prob_ode_dadras = ODEProblem(dadras, [1.0, 0.0, 0.0], (0.0, 1.0), [3.0, 2.7, 1.7, 2.0, 9.0])
120120

121121
## Chen
@@ -128,6 +128,7 @@ function chen_eqs(du, u, p, t)
128128
return du[3] = x * y - b * z
129129
end
130130

131+
chen = ODEFunction(chen_eqs)
131132
@doc doc"""
132133
Chen equations
133134
@@ -143,7 +144,6 @@ with parameters ``a=35, b=3, c=28`` and initial conditions ``x(0)=1, y(0)=0, z(0
143144
144145
[Reference](https://www.worldscientific.com/doi/abs/10.1142/S0218127499001024)
145146
"""
146-
chen = ODEFunction(chen_eqs)
147147
prob_ode_chen = ODEProblem(chen, [1.0, 0.0, 0.0], (0.0, 1.0), [35.0, 3.0, 28.0])
148148

149149
## Rössler
@@ -156,6 +156,7 @@ function rossler_eqs(du, u, p, t)
156156
return du[3] = b + z * (x - c)
157157
end
158158

159+
rossler = ODEFunction(rossler_eqs)
159160
@doc doc"""
160161
Rössler equations
161162
@@ -172,7 +173,6 @@ with parameters ``a=0.2, b=0.2, c=5.7`` and initial conditions ``x(0)=1, y(0)=0,
172173
[Reference](https://www.sciencedirect.com/science/article/abs/pii/0375960176901018)
173174
[Wikipedia](https://en.wikipedia.org/wiki/R%C3%B6ssler_attractor)
174175
"""
175-
rossler = ODEFunction(rossler_eqs)
176176
prob_ode_rossler = ODEProblem(rossler, [1.0, 0.0, 0.0], (0.0, 1.0), [0.2, 0.2, 5.7])
177177

178178
## Rabinovich-Fabrikant
@@ -185,6 +185,7 @@ function rabinovich_fabrikant_eqs(du, u, p, t)
185185
return du[3] = -2 * z * (a + x * y)
186186
end
187187

188+
rabinovich_fabrikant = ODEFunction(rabinovich_fabrikant_eqs)
188189
@doc doc"""
189190
Rabinovich-Fabrikant equations
190191
@@ -200,7 +201,6 @@ with parameters ``a=0.14, b=0.10`` and initial conditions ``x(0)=1, y(0)=0, z(0)
200201
201202
[Reference](https://en.wikipedia.org/wiki/Rabinovich%E2%80%93Fabrikant_equations)
202203
"""
203-
rabinovich_fabrikant = ODEFunction(rabinovich_fabrikant_eqs)
204204
prob_ode_rabinovich_fabrikant = ODEProblem(rabinovich_fabrikant, [1.0, 0.0, 0.0], (0.0, 1.0), [0.14, 0.1])
205205

206206
## Sprott
@@ -213,6 +213,7 @@ function sprott_eqs(du, u, p, t)
213213
return du[3] = x - x^2 - y^2
214214
end
215215

216+
sprott = ODEFunction(sprott_eqs)
216217
@doc doc"""
217218
Sprott equations
218219
@@ -228,7 +229,6 @@ with parameters ``a=2.07, b=1.79`` and initial conditions ``x(0)=1, y(0)=0, z(0)
228229
229230
[Reference](https://sprott.physics.wisc.edu/pubs/paper423.pdf)
230231
"""
231-
sprott = ODEFunction(sprott_eqs)
232232
prob_ode_sprott = ODEProblem(sprott, [1.0, 0.0, 0.0], (0.0, 1.0), [2.07, 1.79])
233233

234234
## Hindmarsh-Rose
@@ -241,6 +241,7 @@ function hindmarsh_rose_eqs(du, u, p, t)
241241
return du[3] = r * (s * (x - xr) - z)
242242
end
243243

244+
hindmarsh_rose = ODEFunction(hindmarsh_rose_eqs)
244245
@doc doc"""
245246
Hindmarsh-Rose equations
246247
@@ -256,5 +257,4 @@ with parameters ``a=1, b=3, c=1, d=5, r=10^{-2}, s=4, x_r=-8/5, i=5`` and initia
256257
257258
[Reference](https://en.wikipedia.org/wiki/Hindmarsh%E2%80%93Rose_model)
258259
"""
259-
hindmarsh_rose = ODEFunction(hindmarsh_rose_eqs)
260260
prob_ode_hindmarsh_rose = ODEProblem(hindmarsh_rose, [1.0, 0.0, 0.0], (0.0, 1.0), [1.0, 3.0, 1.0, 5.0, 1.0e-2, 4.0, -8 / 5, 5.0])

0 commit comments

Comments
 (0)