Hallo, I was trying to follow the tutorial on differential equations available on Juliabox (ODEintroduction), on a brand new installation of JuliaPro (v…6.2.1), but I have troubles:
using DifferentialEquations
f(u,p,t) = 0.98u
u0 = 1.0
tspan = (0.0,1.0)
prob = ODEProblem(f,u0,tspan)
ERROR: MethodError: objects of type Float64 are not callable
Stacktrace:
[1] alg_cache(::OrdinaryDiffEq.Tsit5, ::Float64, ::Float64, ::Type{T} where T, ::Type{T} where T, ::Float64, ::Float64, ::Function, ::Float64, ::Float64, ::Float64, ::Type{Val{true}}) at /opt/JuliaPro-0.6.2.1/JuliaPro/pkgs-0.6.2.1/v0.6/OrdinaryDiffEq/src/caches/low_order_rk_caches.jl:406
[2] #init#1831(::Int64, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}, ::Void, ::Bool, ::Void, ::Bool, ::Bool, ::Bool, ::Bool, ::Float64, ::Bool, ::Rational{Int64}, ::Void, ::Void, ::Int64, ::Rational{Int64}, ::Int64, ::Int64, ::Rational{Int64}, ::Bool, ::Int64, ::Rational{Int64}, ::Rational{Int64}, ::Int64, ::Float64, ::Float64, ::DiffEqBase.#ODE_DEFAULT_NORM, ::DiffEqBase.#ODE_DEFAULT_ISOUTOFDOMAIN, ::DiffEqBase.#ODE_DEFAULT_UNSTABLE_CHECK, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Int64, ::String, ::DiffEqBase.#ODE_DEFAULT_PROG_MESSAGE, ::Void, ::Void, ::Bool, ::Bool, ::Array{Any,1}, ::DiffEqBase.#init, ::DiffEqBase.ODEProblem{Float64,Float64,true,#f,Void,UniformScaling{Int64},DiffEqBase.StandardODEProblem}, ::OrdinaryDiffEq.Tsit5, ::Array{Any,1}, ::Array{Any,1}, ::Array{Any,1}, ::Type{Val{true}}) at /opt/JuliaPro-0.6.2.1/JuliaPro/pkgs-0.6.2.1/v0.6/OrdinaryDiffEq/src/solve.jl:217
[3] (::DiffEqBase.#kw##init)(::Array{Any,1}, ::DiffEqBase.#init, ::DiffEqBase.ODEProblem{Float64,Float64,true,#f,Void,UniformScaling{Int64},DiffEqBase.StandardODEProblem}, ::OrdinaryDiffEq.Tsit5, ::Array{Any,1}, ::Array{Any,1}, ::Array{Any,1}, ::Type{Val{true}}) at ./:0
[4] #solve#1830(::Array{Any,1}, ::Function, ::DiffEqBase.ODEProblem{Float64,Float64,true,#f,Void,UniformScaling{Int64},DiffEqBase.StandardODEProblem}, ::OrdinaryDiffEq.Tsit5, ::Array{Any,1}, ::Array{Any,1}, ::Array{Any,1}, ::Type{Val{true}}) at /opt/JuliaPro-0.6.2.1/JuliaPro/pkgs-0.6.2.1/v0.6/OrdinaryDiffEq/src/solve.jl:6
[5] (::DiffEqBase.#kw##solve)(::Array{Any,1}, ::DiffEqBase.#solve, ::DiffEqBase.ODEProblem{Float64,Float64,true,#f,Void,UniformScaling{Int64},DiffEqBase.StandardODEProblem}, ::OrdinaryDiffEq.Tsit5, ::Array{Any,1}, ::Array{Any,1}, ::Array{Any,1}, ::Type{Val{true}}) at ./:0 (repeats 2 times)
[6] #solve#2(::Bool, ::Array{Any,1}, ::Function, ::DiffEqBase.ODEProblem{Float64,Float64,true,#f,Void,UniformScaling{Int64},DiffEqBase.StandardODEProblem}, ::Void) at /opt/JuliaPro-0.6.2.1/JuliaPro/pkgs-0.6.2.1/v0.6/DifferentialEquations/src/default_solve.jl:14
[7] (::DiffEqBase.#kw##solve)(::Array{Any,1}, ::DiffEqBase.#solve, ::DiffEqBase.ODEProblem{Float64,Float64,true,#f,Void,UniformScaling{Int64},DiffEqBase.StandardODEProblem}, ::Void) at ./:0
[8] #solve#1(::Bool, ::Array{Any,1}, ::Function, ::DiffEqBase.ODEProblem{Float64,Float64,true,#f,Void,UniformScaling{Int64},DiffEqBase.StandardODEProblem}) at /opt/JuliaPro-0.6.2.1/JuliaPro/pkgs-0.6.2.1/v0.6/DifferentialEquations/src/default_solve.jl:5
[9] solve(::DiffEqBase.ODEProblem{Float64,Float64,true,#f,Void,UniformScaling{Int64},DiffEqBase.StandardODEProblem}) at /opt/JuliaPro-0.6.2.1/JuliaPro/pkgs-0.6.2.1/v0.6/DifferentialEquations/src/default_solve.jl:2