Skip to content

Commit e14bea7

Browse files
committed
fix logistic map
1 parent 833ff3e commit e14bea7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PredefinedDynamicalSystems"
22
uuid = "31e2f376-db9e-427a-b76e-a14f56347a14"
33
repo = "https://github.com/JuliaDynamics/PredefinedDynamicalSystems.jl.git"
4-
version = "1"
4+
version = "1.0.1"
55

66
[deps]
77
DynamicalSystemsBase = "6e36e845-645a-534a-86f2-f5d4aa5a06b4"

src/discrete_famous_systems.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ function's documentation string.
226226
[2] : M. J. Feigenbaum, J. Stat. Phys. **19**, pp 25 (1978)
227227
"""
228228
function logistic(x0=0.4; r = 4.0)
229-
return DDS(logistic_rule, x0, [r], logistic_jacob)
229+
return DDS(logistic_rule, SVector(x0), [r])
230230
end
231-
logistic_rule(x, p, n) = p[1]*x*(1-x)
232-
logistic_jacob(x, p, n) = p[1]*(1-2x)
231+
logistic_rule(x, p, n) = @inbounds SVector(p[1]*x[1]*(1 - x[1]))
232+
logistic_jacob(x, p, n) = @inbounds SMatrix{1,1}(p[1]*(1 - 2x[1]))
233233

234234
"""
235235
pomaeu_manneville(u0 = 0.2; z = 2.5)

0 commit comments

Comments
 (0)