Skip to content

Commit d8917a2

Browse files
committed
Corrected Mistakes in Roessler System
1 parent c6fda2f commit d8917a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dynamicalsystem/famous_systems.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function's documentation string.
100100
function roessler(u0=rand(3); a = 0.2, b = 0.2, c = 5.7)
101101
return CDS(roessler_eom, u0, [a, b, c], roessler_jacob)
102102
end
103-
@inline @inbounds function roessler_eom(du, u, p, t)
103+
@inline @inbounds function roessler_eom(u, p, t)
104104
a, b, c = p
105105
du1 = -u[2]-u[3]
106106
du2 = u[1] + a*u[2]
@@ -109,9 +109,9 @@ end
109109
end
110110
@inline @inbounds function roessler_jacob(u, p, t)
111111
a, b, c = p
112-
return @SMatrix [0 1 (-1);
113-
1 a 0;
114-
u[3] 0 u0[1] - c]
112+
return @SMatrix [0 (-1) (-1);
113+
1 a 0;
114+
u[3] 0 (u[1]-c)]
115115
end
116116

117117
"""

0 commit comments

Comments
 (0)