I have copied the SIR model here: 
http://phylodynamics.blogspot.co.uk/2013/07/differential-equation-modeling-with.html
 
which works fine with ode23.  But ode45, which would seem to have the same 
syntax, throws an error:

julia> sol = ode.ode45((t,x)->SIR(t,x,p),t,inits);
ERROR: InexactError()
 in setindex! at array.jl:471
 in oderkf at /opt/julia/usr/share/julia/site/v0.3/ODE/src/ODE.jl:217
 in ode45_dp at /opt/julia/usr/share/julia/site/v0.3/ODE/src/ODE.jl:277

Does anybody know what's going on here, and how I can overcome it?  In 
other words, how do I use ode45?  Thanks!


Reply via email to