You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating registry at C:\Users\gvmur\.julia\registries\General.toml
Resolving package versions...
No Changes to C:\Users\gvmur\.julia\environments\v1.8\Project.toml
No Changes to C:\Users\gvmur\.julia\environments\v1.8\Manifest.toml
UndefVarError: FODESystem not defined
Stacktrace:
[1] top-level scope
@ In[2]:16
The text was updated successfully, but these errors were encountered:
When I running to the following code, I got an error "UndefVarError: FODESystem not defined"
import Pkg
Pkg.add("FractionalDiffEq")
using FractionalDiffEq, Plots
α = [0.9; 0.9; 0.9];
alpha = [0.9, 0.8, 1]
u0 = [1-0.001; 0.001; 0];
tspan = (0, 100);
h = 0.01;
function SIR!(du, u, p, t)
β, γ = 0.4, 0.04
du[1] = -βu[1]u[2]
du[2] = βu[1]u[2]-γu[2]
du[3] = γu[2]
end
prob = FODESystem(SIR!, alpha, u0, tspan)
sol1 = solve(prob, h, FLMMBDF())
sol2 = solve(prob, h, FLMMNewtonGregory())
sol3 = solve(prob, h, FLMMTrap())
sol4 = solve(prob, h, PECE())
sol5 = solve(prob, h, PIEX())
sol6 = solve(prob, h, NonLinearAlg())
sol7 = solve(prob, h, GL())
Updating registry at
C:\Users\gvmur\.julia\registries\General.toml
Resolving package versions...
No Changes to
C:\Users\gvmur\.julia\environments\v1.8\Project.toml
No Changes to
C:\Users\gvmur\.julia\environments\v1.8\Manifest.toml
UndefVarError: FODESystem not defined
Stacktrace:
[1] top-level scope
@ In[2]:16
The text was updated successfully, but these errors were encountered: