Calculation of some dynamic quantities of a system of differential equations arising from a model that describes an oscillator with complex variables. This code is decripted in Julia lang.
Mathematical model can be determined following the general equation given by:
$$ \dot{z}+g(z,\bar{z}) = Ae^{i \omega t} $$
where: $z$ is a complex variable and described as $z=x+yi$ and $g(z,\bar{z})$ is a function that contains the complex variable and its conjugate $\bar{z} = x-yi$. This way, we can also determine $\dot{z}=\dot{x}+\dot{y}i$, so we write the general equation as follows:
$$ \dot{z}=\dot{x}+\dot{y}i +g(z,\bar{z}) = Ae^{i \omega t} $$
Therefore, rewriting the above equation, separating the Real and Imaginary parts, we will have:
$$ \dot{x} = Acos(\omega t)- \mathcal{Re}[g(z,\bar{z})] $$
$$ \dot{y} = Asin(\omega t)- \mathcal{Im}[g(z,\bar{z})] $$
In these scripts, we will use $g(z,\bar{z})=(z^2+\bar{z}^2)z+\bar{z}$, this way we will have the following differential equations:
$$ \dot{x} = 4xy^2-x+A cos(\omega t)$$
$$ \dot{y} = -4x^2y+y+Acos(\omega t )$$
The 1_Alexandria.jl file uses the following libraries:
DynamicalSystems.jl, SharedArrays.jl, MAT.jl, Statistics.jl, OrdinaryDiffEq.jl, ProgressMeter.jl, DelimitedFiles.jl, CairoMakie.jl