Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ay111 opened this issue Aug 20, 2023 · 2 comments

Comments

@ay111
Copy link

ay111 commented Aug 20, 2023

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

@ErikQQY
Copy link
Member

ErikQQY commented Aug 21, 2023

Sorry for the errors, there is an overhaul ongoing in FractionalDiffEq.jl to have a better-integrated ecosystem with SciML, so there may be some unexpected errors, could you please provide your Julia version and FractionalDiffEq.jl version on your computer?

@ay111
Copy link
Author

ay111 commented Aug 21, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants