Skip to content

Commit 69abc03

Browse files
committed
typo in duffing
1 parent 44a5ffe commit 69abc03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/famous_systems.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,13 @@ function duffing(u0 = [rand(), rand()]; ω = 2.2, f = 27.0, d = 0.2, β = 1)
264264
J = zeros(eltype(u0), 2, 2)
265265
J[1,2] = 1
266266
@inbounds function duffing_eom(dx, x, p, t)
267-
ω, d, f, β = p
267+
ω, f, d, β = p
268268
dx[1] = x[2]
269269
dx[2] = f*cos*t) - β*x[1] - x[1]^3 - d * x[2]
270270
return nothing
271271
end
272272
@inbounds function duffing_jacob(J, u, p, t)
273-
ω, d, f, β = p
273+
ω, f, d, β = p
274274
J[2,1] = -β - 3u[1]^2
275275
J[2,2] = -d
276276
end

0 commit comments

Comments
 (0)