-
Notifications
You must be signed in to change notification settings - Fork 39
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
Fix error checking in lyapunov and lyapunovspectrum #262
Conversation
Thank you very much! This is a great step forwards! Can you please open a PR at DynamicalSystemsBase.jl, in which you define a function
which returns Furthermore, instead of lastly, you need to add a test in the test suite that indeed confirms that we get |
Hi! I've modified this pull request. Now it's much cleaner with the suggested
|
Thanks, I'll go through the other PR now and give some help. For the tests of the current PR, you need to add a test that computes the lyapunovspectrum for the unstable system-parameters mentioned in the issue and ensure that the return is NaN. |
Hi! I am facing this same problem, but the implemented solution on this post is not on the current version of lyapunov.jl.
With this specific When I update my local file So, the question is: is this not implemented because it is provisional and we must resolve 184 or any other reason? Is there a problem with changing only my local files, thinking about reproducibility? |
Yes, all functions should have the |
This is an attempt to fix issue 184. I've added error checking:
lyapunov
andlyapunovspectrum
now return NaN values immediately in the case of instability. Note that this version only tests for the:Unstable
retcode and only if the integrator is a usual one. In case of the simple integrator types thedt<dtmin
error is raised on instability.I also did some benchmarking on
Systems.lorenz
.With error checking:
Without error checking: