From 931e87e0d81a7cf372c80f2283a820c6cbe7818c Mon Sep 17 00:00:00 2001 From: swt30 Date: Mon, 20 Oct 2014 12:56:07 +0100 Subject: [PATCH] Fix ode4 argument order in comments If you're like me, you spend waaay too long wondering why the simple RK4 solver isn't working instead of actually checking the function itself. The comments above the function had the argument order wrong - this tiny commit fixes that. --- src/ODE.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ODE.jl b/src/ODE.jl index 724ac1bb3..7b4d34cad 100644 --- a/src/ODE.jl +++ b/src/ODE.jl @@ -366,7 +366,7 @@ const ode45 = ode45_dp #ODE4 Solve non-stiff differential equations, fourth order # fixed-step Runge-Kutta method. # -# [T,X] = ODE4(ODEFUN, TSPAN, X0) with TSPAN = [T0:H:TFINAL] +# [T,X] = ODE4(ODEFUN, X0, TSPAN) with TSPAN = [T0:H:TFINAL] # integrates the system of differential equations x' = f(t,x) from time # T0 to TFINAL in steps of H with initial conditions X0. Function # ODEFUN(T,X) must return a column vector corresponding to f(t,x). Each