Skip to content

Example on system of fractional difference equations returned fractionalDiscreteSystem not defined  #87

@ay111

Description

@ay111

See the Julia session below:
julia> using FractionalDiffEq, Plots

julia> function sys!(du, u, p, t)
du[1] = -0.05u[2] - 0.05u[3] + 0.01tanh(u[2])
du[2] = 0.05
u[1] + 0.02u[2] + 0.01tanh(u[1])
du[3] = 0.1 - 0.2u[3] + 0.05u[1]u[3] + 0.01tanh(u[3])
end
sys! (generic function with 1 method)

julia> prob = FractionalDsicreteSystem(sys!, 0.98, [1, -1, 0])
ERROR: UndefVarError: FractionalDsicreteSystem not defined
Stacktrace:
[1] top-level scope
@ REPL[3]:1

julia> result = solve(prob, 7, GL())
ERROR: UndefVarError: prob not defined
Stacktrace:
[1] top-level scope

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions