Skip to content

Commit 9476931

Browse files
committed
Fix Van der Pol equations
1 parent 12cc264 commit 9476931

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ode/ode_simple_nonlinear_prob.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ prob_ode_fitzhughnagumo = ODEProblem(fitz,[1.0;1.0],(0.0,1.0),(0.7,0.8,1/12.5,0.
5252
@parameters t μ
5353
@variables x(t) y(t)
5454
@derivatives D'~t
55-
eqs = [D(x) ~ μ*((1-x^2)*y - x),
56-
D(y) ~ y]
55+
eqs = [D(y) ~ μ*((1-x^2)*y - x),
56+
D(x) ~ y]
5757
de = ODESystem(eqs)
58-
van = ODEFunction(de, [x,y], [μ], jac=true)
58+
van = ODEFunction(de, [y,x], [μ], jac=true)
5959

6060
"""
6161
Van der Pol Equations

0 commit comments

Comments
 (0)