The following question is a part of my research here,I want to calulate the Lyaponov exponents of the following dynamics to show whether i have a chaotic dynamics or not. $$ \ddot{x}-ax+bx^{3}+cx^{5}+A \,\cos \left(( \omega t)\right)+\gamma\, \dot{x}=g,\dot x(0) =0,x(0)=0 $$ with $$g: n \mapsto \left\{ \begin{array}{ll} \left \lfloor{n/\sqrt{2}} \right \rfloor & \text{ if } n \text{ even,} \\ \left \lfloor{n\sqrt{2}} \right \rfloor & \text{ if } n \text{ odd.} \end{array} \right.$$ I just took the case of n is odd . Here is my Code :
Clear[A];
solution[A_, tmax_] :=
NDSolve[{v'[t] ==
x[t] - x[t]^3 - 0.05*v[t] + A*Cos[1.1*t] -
FractionalPart[2024/Sqrt[2]], x'[t] == v[t], x[0] == 0,
v[0] == 0}, {x, v}, {t, 0, tmax}, MaxSteps -> 100*tmax]
sol3 = solution[0.2, 800]
graph[tmin_, tmax_] :=
ParametricPlot[Evaluate[{x[t], v[t]} /. sol3], {t, tmin, tmax},
AxesLabel -> {"x", "v"}]
graph[0, 200]
sol3 = {x -> 0.5, v -> -1.34};
LyapunovExponents[sol3, ShowPlot -> True]
But I didn't get any values of Lyaponov exponents however i was able to show the parametric plot of my dynamics
Thanks for any help or any comments