-
Notifications
You must be signed in to change notification settings - Fork 90
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
Support for Complex number equations? #181
Comments
Hi, sorry this will never be supported in DynamicalSystems.jl. Within the nonlinear dynamics theory it is much better to decompose your complex numbers into formal equations for the real and imaginary parts. Otherwise you are "hiding" the dimensionality of your state space. The example you post above is not two dimensional, but four. Decomposing that enables the rest of the library to work, because many algorithms must know the state space dimensionality to work. And with complex numbers, you can never know if the dimensionality is twice as much, or something in between. So in conclusion, re-write your equations with real numbers by separating real and imaginary parts. |
However, I am re-opening this, because an error needs to be put into the dynamical system creation when the state has complex numbers. The error should say "decompose into reals.". |
Hello! I am a first time contributor and I would like to help with this issue :) |
The example is simple:
Was trying to define a Dynamical system. And:
So I manually set
And run it again:
If I remove the
im
in the equation and changeComplexF64
toFloat64
then it works fine.So does this mean DynamicalSystem.jl doesn't support complex numbers?
Package versions
versions:
The text was updated successfully, but these errors were encountered: