Skip to content

Commit 98adc29

Browse files
Update README.md
1 parent 1154c32 commit 98adc29

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ using DiffEqBase, MATLABDiffEq, ParameterizedFunctions
3434

3535

3636
f = @ode_def LotkaVolterra begin
37-
dx = a*x - b*x*y
38-
dy = -c*y + d*x*y
39-
end a=1.5 b=1 c=3 d=1
37+
dx = 1.5x - x*y
38+
dy = -3y + x*y
39+
end
4040

4141
tspan = (0.0,10.0)
4242
u0 = [1.0,1.0]
@@ -69,10 +69,10 @@ Generally, for long enough problems the overhead is minimal. Example:
6969
```julia
7070
using DiffEqBase, ParameterizedFunctions, MATLABDiffEq
7171
f = @ode_def_bare RigidBodyBench begin
72-
dy1 = I1*y2*y3
73-
dy2 = I2*y1*y3
74-
dy3 = I3*y1*y2 + 0.25*sin(t)^2
75-
end I1=-2 I2=1.25 I3=-.5
72+
dy1 = -2*y2*y3
73+
dy2 = 1.25*y1*y3
74+
dy3 = -0.5*y1*y2 + 0.25*sin(t)^2
75+
end
7676
prob = ODEProblem(f,[1.0;0.0;0.9],(0.0,100.0))
7777
alg = MATLABDiffEq.ode45()
7878
algstr = string(typeof(alg).name.name)

0 commit comments

Comments
 (0)