Solving odes with ode45 and then checking fixed points for constant behavior,
古いコメントを表示
Update: I just plotted the differences between the dynamical states and the corresponding initial states, and the differences, for all state variables, were 1e-15. I think my fixed point calculations could be legitimate.
Hi there!
I've calculated some fixed points in a dynamical system consisting of several coupled ODEs, and now I want to check that the fixed points behave well in the simulations, as a check that my calculations are correct. I gave ode45 the most stringent tolerances that it was happy with: about 3e-14. And, after simulating for, I think, a pretty long time, I go to plot some of my dynamical state variables vs. time t. In the plots, I see that the state variables are constant for up to 13 or 14 digits after the decimal point.
Can I conclude that these variables are in steady state?
If so, then it appears that my calculated fixed points are legitimate.
Or, can I do better than 13 or 14 digits?
Should I switch to a different ode solver in Matlab?
I think "machine precision" is 15 digits after the decimal point, but I'm a newbie in numerical analysis.
Any thoughts would be greatly appreciated.
Thanks in advance!
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!